Skip to main content

Validation rules

Beyond the built-in field type checks, you can add a regex pattern and custom error message to text, email, and phone fields.

How to add validation

  1. Open a text-based field.

  2. Toggle on Validation.

  3. Pick a preset from the code icon (Email, Phone, URL, Postal code, Numeric only, Letters only, VAT, Hex color) β€” or write your own regex pattern.

  4. Set the error message customers see when their input doesn't match.

Length limits

For text and long-text fields, toggle Length to set minimum and maximum character counts.

Number ranges

For number fields, toggle Limits to set min, max, and step values.

Date ranges

For date fields, toggle Limits to set the earliest and latest allowed dates.

Did this answer your question?