[validatorsDefinition]¶
Properties¶
[validatorsDefinition]¶
- Option path
- TYPO3.CMS.Form.prototypes.<prototypeIdentifier>.validatorsDefinition
- Data type
- array
- Needed by
- Frontend/ Backend (form editor)
- Mandatory
- Yes
- Default value
1 2 3 4
prototypes: <prototypeIdentifier>: validatorsDefinition: [...]
- Good to know
- Description
- Array which defines the available serverside validators. Every key within this array is called the
<validatoridentifier>
.
<validatorIdentifier>¶
- Option path
- TYPO3.CMS.Form.prototypes.<prototypeIdentifier>.validatorsDefinition.<validatorIdentifier>
- Data type
- array
- Needed by
- Frontend/ Backend (form editor)
- Mandatory
- Yes
- Default value (for prototype ‘standard’)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
prototypes: standard: NotEmpty: [...] DateTime: [...] Alphanumeric: [...] Text: [...] StringLength: [...] EmailAddress: [...] Integer: [...] Float: [...] NumberRange: [...] RegularExpression: [...] Count: [...] FileSize: [...]
- Related options
- Good to know
- Description
- This array key identifies a validator. This identifier could be used to attach a validator to a form element.
Common <validatorIdentifier> properties¶
implementationClassName¶
- Option path
- TYPO3.CMS.Form.prototypes.<prototypeIdentifier>.validatorsDefinition.<validatorIdentifier>.implementationClassName
- Data type
- string
- Needed by
- Frontend
- Mandatory
- Yes
- Default value
- Depends (see concrete validators configuration)
- Good to know
- Description
- Classname which implements the validator.
options¶
- Option path
- TYPO3.CMS.Form.prototypes.<prototypeIdentifier>.validatorsDefinition.<validatorIdentifier>.options
- Data type
- array
- Needed by
- Frontend/ Backend (form editor)
- Mandatory
- Depends (see concrete validators configuration)
- Default value
- Depends (see concrete validators configuration)
- Good to know
- Description
- Array with validator options.
formEditor¶
- Option path
- TYPO3.CMS.Form.prototypes.<prototypeIdentifier>.validatorsDefinition.<validatorIdentifier>.formEditor
- Data type
- array
- Needed by
- Backend (form editor)
- Mandatory
- Recommended
- Default value
- Depends (see concrete validators configuration)
- Description
- Array with configurations for the
form editor
formeditor.iconIdentifier¶
- Option path
- TYPO3.CMS.Form.prototypes.<prototypeIdentifier>.validatorsDefinition.<validatorIdentifier>.formEditor.iconIdentifier
- Data type
- string
- Needed by
- Backend (form editor)
- Mandatory
- Yes
- Default value
- Depends (see concrete validators configuration)
- Description
- An icon identifier which must be registered through the
\TYPO3\CMS\Core\Imaging\IconRegistry
. This icon will be shown within the - “Inspector [CollectionElementHeaderEditor]” if the validator is selected.
formeditor.label¶
- Option path
- TYPO3.CMS.Form.prototypes.<prototypeIdentifier>.validatorsDefinition.<validatorIdentifier>.formEditor.label
- Data type
- string
- Needed by
- Backend (form editor)
- Mandatory
- Yes
- Default value
- Depends (see concrete validators configuration)
- Good to know
- Description
- This label will be shown within the - “Inspector [CollectionElementHeaderEditor]” if the validator is selected.
formeditor.predefinedDefaults¶
- Option path
- TYPO3.CMS.Form.prototypes.<prototypeIdentifier>.validatorsDefinition.<validatorIdentifier>.formEditor.predefinedDefaults
- Data type
- array
- Needed by
- Backend (form editor)
- Mandatory
- No
- Default value
- Depends (see concrete validators configuration)
- Description
- Defines predefined defaults for validator options which are prefilled, if the validator is added to a form element.