[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
prototypes.<prototypeIdentifier>.validatorsDefinition.StringLength.implementationClassName
Data type
string
Needed by
Frontend
Mandatory
Yes
Default value (for prototype 'standard')
StringLength:
  implementationClassName: TYPO3\CMS\Extbase\Validation\Validator\StringLengthValidator
Copied!
Good to know
Description

Classname which implements the validator.

options.minimum

Option path
prototypes.<prototypeIdentifier>.validatorsDefinition.StringLength.options.minimum
Data type
int
Needed by
Frontend
Mandatory
Yes
Default value (for prototype 'standard')
undefined
Description
Minimum length for a valid string.

options.maximum

Option path
prototypes.<prototypeIdentifier>.validatorsDefinition.StringLength.options.maximum
Data type
int
Needed by
Frontend
Mandatory
Yes
Default value (for prototype 'standard')
undefined
Description
Maximum length for a valid string.

formEditor.iconIdentifier

Option path
prototypes.<prototypeIdentifier>.validatorsDefinition.StringLength.formEditor.iconIdentifier
Data type
string
Needed by
Backend (form editor)
Mandatory
Yes
Default value (for prototype 'standard')
StringLength:
  formEditor:
    iconIdentifier: form-validator
    label: formEditor.elements.TextMixin.editor.validators.StringLength.label
Copied!
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
prototypes.<prototypeIdentifier>.validatorsDefinition.StringLength.formEditor.label
Data type
string
Needed by
Backend (form editor)
Mandatory
Yes
Default value (for prototype 'standard')
StringLength:
  formEditor:
    iconIdentifier: form-validator
    label: formEditor.elements.TextMixin.editor.validators.StringLength.label
Copied!
Good to know
Description

This label will be shown within the - "Inspector [CollectionElementHeaderEditor]" if the validator is selected.

formEditor.predefinedDefaults

Option path
prototypes.<prototypeIdentifier>.validatorsDefinition.StringLength.formEditor.predefinedDefaults
Data type
array
Needed by
Backend (form editor)
Mandatory
No
Default value (for prototype 'standard')
StringLength:
  formEditor:
    predefinedDefaults:
      options:
        minimum: ''
        maximum: ''
Copied!
Description

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