New in version 12.0.
- min (type => text)¶
This option allows to define a minimum number of characters for the
<input>field and adds a
minlengthattribute to the field. If at least one character is typed in and the number of characters is less than
min, the FormEngine marks the field as invalid, preventing the user to save the element. DataHandler will also take care for server-side validation and reset the value to an empty string, if
minis not reached.
minin combination with max, one has to make sure, the
minvalue is less than or equal
max. Otherwise the option is ignored.
Empty fields are not validated. If one needs to have non-empty values, it is recommended to use
required => truein combination with
This option does not work for text fields, if RTE is enabled.