:: Version 2.7.0 ::

Force a field to be mandatory

Prerequisite: You must be familiar with the Syntax used in Tutorials and have already created an extension.

learning:
Force a field to be provided
level:
Intermediate
domains:
XML, PHP, Constrain, Portal
min version:
2.3.0

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
  • DataSynchro
  • API REST/JSON

The first series of tutorials explains how to make the PhysicalDevice “Location” field mandatory.

  1. Always mandatory for all sub-classes of PhysicalDevice.
  2. Always mandatory but only for a subset of the PhysicalDevice sub-classes.
  3. 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

2_7_0/customization/mandatory-field.txt · Last modified: 2020/04/15 15:23 (external edit)
Back to top
Contact us