-
The TCA option "min" allows to define a minimum number of characters a text field should have. This effectively adds a "minlength" attribute to the input field. If you are short on characters, an alert badge will show you how many characters are missing. The FormEngine won't allow saving fields which don't provide enough characters. Zero characters (empty fields) are allowed, as this is the same behaviour as the html attribute has. If empty fields shouldn't be allowed, a combination with "required=true" is necessary. This option works for default type="input" fields and type="text" fields, except if RTE is enabled. DataHandler will also take care for server-side validation and reset the value to an empty string, if "min" is not reached. Resolves: #92861 Releases: main Change-Id: I985caf9c62e362a9015fde1513a9a5fba0622587 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70196 Tested-by: core-ci <typo3@b13.com> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Stefan Bürk <stefan@buerk.tech> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Stefan Bürk <stefan@buerk.tech>
7321d709