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
Open a text-based field.
Toggle on Validation.
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.
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.