With Validation Rules you can have control over which values are or are not allowed within a specific field. For example, you can:
Limit the number of characters in a paragraph text field
Restrict files to specific types and sizes
Allow only a specific range of numbers and dates
Run your own regular expressions on a Short Text field
- Set password minimum and maximum character counts on a User Role password field
Adding a Validation Rules to a Field
As with Conditional Rules, you need to edit the field you want - by clicking on the "gear" icon to the right of field’s name in the builder - to access the Advanced Options:
Click on the Validation Rules tab from the Advanced Options modal and tick the checkbox to start adding rules for this field:
The above rule states that When this field's character count is higher than 500, we will display a custom message alerting the user has gone over that character count.
Multiple Validation Rules
You can add multiple validation rules to a single field to check for different conditions. If no conditions match (that is, if no rules are broken), the field will submit as usual:
When a validation rule finds a match, your user will be notified and the affected field will be highlighted:
Notes & Troubleshooting
Validation Rules only work for form submissions and inline edits.
Imports, form rules, and batch updates do not perform validation checks.