[RequiredValidatorEditor]
Introduction
Shows a checkbox. If set, a validator ('NotEmpty' by default) will be written into the form definition. In addition another property could be written into the form definition.
Properties
templateName
- Data type
- string
- Needed by
- Backend (form editor)
- Mandatory
- Yes
- Related options
- value
- Inspector-RequiredValidatorEditor
- Good to know
- Description
-
The inline HTML template which is used for this inspector editor. Must be equal to an existing array key within
prototypes.<prototypeIdentifier>.formEditor.formEditorPartialsand must be started with 'Inspector-' by convention.
identifier
- Option path
- prototypes.<prototypeIdentifier>.formElementsDefinition.<formElementTypeIdentifier>.formEditor.editors.*.identifier
- Data type
- string
- Needed by
- Backend (form editor)
- Mandatory
- Yes
- Default value
- Depends (see concrete element configuration)
- Good to know
- Description
- Identifies the current
inspector editorwithin the current form element. The identifier is a text of your choice but must be unique within the optionpathprototypes.prototypeIdentifier.formElementsDefinition.formelementtypeidentifier.formEditor.editors.
label
- Option path
- prototypes.<prototypeIdentifier>.formElementsDefinition.<formElementTypeIdentifier>.formEditor.editors.*.label
- Data type
- string
- Needed by
- Backend (form editor)
- Mandatory
- Yes
- Default value
- Depends (see concrete element configuration)
- Good to know
- Description
- The label for this
inspector editorwhich is shown within theinspector component.
validatorIdentifier
- Data type
- string
- Needed by
- Backend (form editor)
- Mandatory
- Yes
- Good to know
- Description
- The
<validatorIdentifier>which should be used.
propertyPath
- Data type
- string
- Needed by
- Backend (form editor)
- Mandatory
- No
- Good to know
- Description
- An property path which should be written into the
form definition` if the checkbox is set.
propertyValue
- Data type
- string
- Needed by
- Backend (form editor)
- Mandatory
- No
- Good to know
- Description
- The value for the property path which should be written into the
form definition` if the checkbox is set.