[DateRange]

Validation error codes

  • Error code: 1521293685

  • Error message: You must enter an instance of \DateTime.

  • Error code: 1521293686

  • Error message: You must select a date before %s.

  • Error code: 1521293687

  • Error message: You must select a date after %s.

Properties

implementationClassName

Option path

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

Data type

string

Needed by

Frontend

Mandatory

Yes

Default value (for prototype 'standard')
1Count:
2  implementationClassName: TYPO3\CMS\Form\Mvc\Validation\DateRangeValidator
Good to know
Description

Classname which implements the validator.

options.format

Option path

TYPO3.CMS.Form.prototypes.<prototypeIdentifier>.validatorsDefinition.DateRange.options.format

Data type

string

Needed by

Frontend

Mandatory

Yes

Default value (for prototype 'standard')
1DateRange:
2  options:
3    format: Y-m-d
Description

The format of the date.

formeditor.iconIdentifier

Option path

TYPO3.CMS.Form.prototypes.<prototypeIdentifier>.validatorsDefinition.DateRange.formEditor.iconIdentifier

Data type

string

Needed by

Backend (form editor)

Mandatory

Yes

Default value (for prototype 'standard')
1DateRange:
2  formEditor:
3    iconIdentifier: form-validator
4    label: formEditor.elements.FormElement.validators.DateRange.editor.header.label
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.DateRange.formEditor.label

Data type

string

Needed by

Backend (form editor)

Mandatory

Yes

Default value (for prototype 'standard')
1DateRange:
2  formEditor:
3    iconIdentifier: form-validator
4    label: formEditor.elements.FormElement.validators.DateRange.editor.header.label
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.DateRange.formEditor.predefinedDefaults

Data type

array

Needed by

Backend (form editor)

Mandatory

No

Default value (for prototype 'standard')
1DateRange:
2  formEditor:
3    predefinedDefaults:
4      options:
5        minimum: ''
6        maximum: ''
Description

Defines predefined defaults for validator options which are prefilled, if the validator is added to a form element.