Use validation if you want to only allow the entry of a specific format of data in the field. This can be configured on the form fields properties window using the Validate tab. The form field must be in either a Number or Percentage Format to be validated and can be customized using the Format tab to the left of Validate.
The Validate properties restrict entries to specified ranges, values, or characters, ensuring that users enter the appropriate data for a combo box.
Field value is not validated – Turns off validation
Field value is in range – Sets a numeric range for a combo box using values you
enter in either as a number or a percentage. It is available only when Number or
Percentage is selected in Format tab.
Run custom validation script – Validates by a JavaScript that you create or provide.
The Edit button opens a JavaScript Edition dialog box in which you can write and
add new scripts.
Example:
We can use form validation to force users to only fill between certain numbers. For instance, in a quantity box we can set a minimum and maximum for what can be entered. This can also be used to only accept certain telephone formats or email addresses as well.