What is form validation?
Data validation in form building, also called form validation, ensures that responses match certain predefined criteria before the form is submitted. This maintains the accuracy of the data and enhances security by avoiding the submission of incorrect, incomplete or harmful data.Set a validation rule
Click on the question or field’s settings icon to open the right-hand panel. The Validation section lets you set the ff:- Min length - enter a minimum no. of allowed characters for text fields
- Max length - enter a maximum no. of allowed characters for text fields
- Error message - customize the default warning shown when validation rules are not met
- Validation pattern - set a criteria to ensure a response meets a certain requirement

Regular Expressions (Regex)
Choose Regex to validate a response with a pattern or formula used to check text. This lets you set rules for the type of response you want to accept. See here for a list of popular regular expressions. Here are some examples:
Copy and paste your Regex. For example, for an “Account ID” with no spaces or special characters, use
^[a-zA-Z0-9]*$ to allow only letters and numbers.

Regex can help make conditions case insensitive. To do this, create your own Regex.
Condition
Choose Condition to validate a response based on an arbitrary condition. Click Set conditional logic, then + Add condition. For example, we only want to accept “gmail or yahoo emails”.