[StringLength]¶
Validation error codes¶
Error code:
1238110957
Error message:
The given object could not be converted to a string.
Error code:
1269883975
Error message:
The given value was not a valid string.
Error code:
1428504122
Error message:
The length of the given string was not between %s and %s characters.
Error code:
1238108068
Error message:
The length of the given string is less than %s characters.
Error code:
1238108069
Error message:
The length of the given string exceeded %s characters.
Properties¶
implementationClassName¶
- Option path
TYPO3.CMS.Form.prototypes.<prototypeIdentifier>.validatorsDefinition.StringLength.implementationClassName
- Data type
string
- Needed by
Frontend
- Mandatory
Yes
- Default value (for prototype 'standard')
1StringLength: 2 implementationClassName: TYPO3\CMS\Extbase\Validation\Validator\StringLengthValidator
- Good to know
- Description
Classname which implements the validator.
options.minimum¶
- Option path
TYPO3.CMS.Form.prototypes.<prototypeIdentifier>.validatorsDefinition.StringLength.options.minimum
- Data type
int
- Needed by
Frontend
- Mandatory
Yes
- Default value (for prototype 'standard')
undefined
- Description
The minimum value to accept.
options.maximum¶
- Option path
TYPO3.CMS.Form.prototypes.<prototypeIdentifier>.validatorsDefinition.StringLength.options.maximum
- Data type
int
- Needed by
Frontend
- Mandatory
Yes
- Default value (for prototype 'standard')
undefined
- Description
The maximum value to accept.
formeditor.iconIdentifier¶
- Option path
TYPO3.CMS.Form.prototypes.<prototypeIdentifier>.validatorsDefinition.StringLength.formEditor.iconIdentifier
- Data type
string
- Needed by
Backend (form editor)
- Mandatory
Yes
- Default value (for prototype 'standard')
1StringLength: 2 formEditor: 3 iconIdentifier: form-validator 4 label: formEditor.elements.TextMixin.editor.validators.StringLength.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.StringLength.formEditor.label
- Data type
string
- Needed by
Backend (form editor)
- Mandatory
Yes
- Default value (for prototype 'standard')
1StringLength: 2 formEditor: 3 iconIdentifier: form-validator 4 label: formEditor.elements.TextMixin.editor.validators.StringLength.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.StringLength.formEditor.predefinedDefaults
- Data type
array
- Needed by
Backend (form editor)
- Mandatory
No
- Default value (for prototype 'standard')
1StringLength: 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.