Form field validation gives you greater control over the data you collect in your forms.
You can add validation to:
- Short text fields
- Long text fields
- Email fields
- Number fields
- Date fields
What validations are possible?
Short and long text fields:
A minimum and a maximum number of characters.
Email fields:
Allow or block emails from a certain domain (for example, don’t allow gmail.com or yahoo.com).
Number fields:
Number fields support several validation options:
- Min value and Max value — restrict the accepted range of numbers.
- Min digits and Max digits — control how many digits the number must have.
- Decimal places — set how many decimal places are allowed.
- Allow negative numbers — choose whether negative values are accepted.
- Unit — display a unit label alongside the field (for example, kg, USD, or %).
Date fields:
Restrict the accepted date range with two constraints:
- Date must be after — set a specific calendar date as the earliest allowed value.
- Date must be before — set a specific calendar date as the latest allowed value.
Placeholder text
Add placeholder text to your form fields to show an example of how to fill them in or to provide additional instructions.

You can add placeholder text to:
- Short text fields
- Long text fields
- Email fields
- Number fields