All Collections
Advanced Form for Airtable
Validation & Security
How to use regular expressions for conditions?
How to use regular expressions for conditions?

I want to validate the format of an ID number entered by a user.

Updated over a week ago

The regular expression (RegEx) provides a wide range of possibilities and flexibility in setting up conditions for various features such as:

  • Conditional Field

  • Field Validation

  • Filters

  • Login conditions

  • Form submission conditions

For instance, you may use RegEx to validate if an ID number follows a specific format like this example.


Here's an example of how to validate Zip codes:

You would use the pattern ^\d{5}(-\d{4})?$ and the result would look like this:


RegEx is not supported for the following field types:

  • Multi-select

  • Date

  • Duration

  • Checkbox

  • Number

  • Currency

  • Percent

  • Linked Records

  • Lookup

  • Rating

Did this answer your question?