Skip to content

Instantly share code, notes, and snippets.

@DenisMir
Last active February 12, 2024 10:54
Show Gist options
  • Save DenisMir/d35975a19db8534ee8f752c50406c595 to your computer and use it in GitHub Desktop.
Save DenisMir/d35975a19db8534ee8f752c50406c595 to your computer and use it in GitHub Desktop.
TYPO3 ext_form custom form element configuration including validators
FirstName:
__inheritances:
10: 'TYPO3.CMS.Form.prototypes.standard.formElementsDefinition.Text'
renderingOptions:
templateName: 'Text'
label: 'Custom First Name'
defaultValue: ''
properties:
fluidAdditionalAttributes:
placeholder: 'Insert custom first name'
required: required
minlength: '1'
maxlength: '20'
validators:
-
identifier: StringLength
options:
minimum: '1'
maximum: '20'
-
identifier: NotEmpty
-
type: FirstName
identifier: firstname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment