[validatorsDefinition]

Properties

[validatorsDefinition]

Option path

TYPO3.CMS.Form.prototypes.<prototypeIdentifier>.validatorsDefinition

Data type

array

Needed by

Frontend/ Backend (form editor)

Mandatory

Yes

Default value
1prototypes:
2  <prototypeIdentifier>:
3    validatorsDefinition:
4      [...]
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')
 1prototypes:
 2  standard:
 3    NotEmpty:
 4      [...]
 5    DateTime:
 6      [...]
 7    Alphanumeric:
 8      [...]
 9    Text:
10      [...]
11    StringLength:
12      [...]
13    EmailAddress:
14      [...]
15    Integer:
16      [...]
17    Float:
18      [...]
19    NumberRange:
20      [...]
21    RegularExpression:
22      [...]
23    Count:
24      [...]
25    FileSize:
26      [...]
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.

Concrete configurations