Force a field to be mandatory
Prerequisite: You must be familiar with the Syntax used in Tutorials and have already created an extension.
- Force a field to be provided
- XML, PHP, Constrain, Portal
- min version:
There are many ways to force a field to be provided, depending on what you want to achieve. Each technic is described in a separate tutorial, just follow the link which correspond to what you want to achieve.
The different technics will not work in all situations, for each technic, the tutorial will mention which modification will be controlled and which one will not. The possible ways for modifying an object are:
Console - object creation/modification form as well as bulk-modification form
Portal - object creation/modification form
CSV import - in the console and in command line
The first series of tutorials explains how to make the PhysicalDevice “Location” field mandatory.
Always mandatory for all sub-classes of PhysicalDevice.
Always mandatory but only for a subset of the PhysicalDevice sub-classes.
Mandatory for a given class, but only if the object respects a particular condition.
The second series of tutorials explains how to make the UserRequest “Service” and “Service subcategory” field mandatory or optional
Mandatory on a transition or a state of the lifecycle.
Mandatory on the User Portal while it is not mandatory in the Console.