Character limits are set at the individual field level and both minimums and maximums can be set simultaneously or individually. Permissible length must be defined as a character count, so you’ll need to determine how many characters you’d like to allow and enter that number in your validation.
Character limit validation error messages can’t be customized. If the user submission value doesn’t meet validation criteria, then either of the following messages will be displayed after the user exits the input field:
- "Should not be longer than _"
- "Should not be shorter than _"
Set character limits on fields
Here are the validation keys you can add to your short and long text type fields:
"validation": {
"minLength": 15,
"maxLength": 100
},