Select Page
How to Add Field Validation to Emails, Dates, and Text

How to Add Field Validation to Emails, Dates, and Text

🔴 On2Air Forms has been shutdown to focus on our On2Air Backups Airtable app Learn more about automated Airtable backups - on2air.com

DOCS IN PROGRESS

You can enable field validation for fields like dates, emails, phone numbers, single-line text, and more. This ensures the user can only enter data in a specified format like MMM/DD/YYY for dates or XXX-XXX-XXXX for phone numbers and keeps your data clean.

Single-Line Text

Mask

InputMask component is used to enter input in a certain format such as numeric, date, currency, email and phone.

mask: For Single Line Text, will force input to fit a predefined pattern. ex: ID, Phone Number, etc | View Details

autoClear: For Single Line Text when using a mask, if checked, will clear on blur if input does not match mask | View Details

slotChar: For Single Line Text when using a mask, will provide a placeholder to help with the mask input | View Details

Mask format can be a combination of the the following built-in definitions.

  • a - Alpha character (A-Z,a-z)
  • 9 - Numeric character (0-9)
  • - Alpha numberic character (A-Z,a-z,0-9)
image

Key Filter

The KeyFilter feature restricts user input based on a regular expression.

image

keyfilter: Format keys to be blocked. View options

  • pint: Positive integers
  • int: Integers
  • pnum: Positive numbers
  • num: Numbers
  • hex: Hexadecimal
  • email: Email
  • alpha: Alphabetic
  • alphanum: Alphanumeric

Dates

Emails

Phone Numbers