The textarea field creates a textarea for longer texts with automatic resizing and optional format buttons.
fields: text: label: Text type: textarea
You can also specify which buttons to show at the bottom of the textarea field. You can hide the buttons completely by adding
buttons: false or only show specific buttons by specifying which one:
fields: text: label: Text type: textarea buttons: - link - email
Max and min length
You can control the max and/or min length of the entered text by using the validate option. By adding the validators, a handy indicator of the current text length will be displayed in the upper right corner.
fields: name: label: Name type: text validate: minLength: 10 maxLength: 1000
Names of validators
Please note that the names of the validators have been changed from
minLength and from
Before 2.3.2, the
max validators would check for the value of the number if a numeric value is entered. You can still use those if that's the intended behavior.