Celebrate WordCamp Asia 2024 with 30% OFF! Use coupon WC30 - Terms

Input Masks

Input masks help website users with the input of a field by ensuring it is entered in a predefined format. This can be useful for phone numbers, zip codes etc.

The input masks feature is available for Text, Phone, Text Area and Password fields.

To enter an input mask:

  1. Click the settings icon on a field.
  2. Click on the Advanced tab.
  3. Enter your input mask into the Input Mask setting.
  4. Click the Save button at the bottom of the page.

Input Mask Format

You can use the following characters to enter an input mask:

a Alphabetical (a-z or A-Z)
A Uppercase only alphabetical (A-Z)
9 Numeric (0-9)
* Alphanumeric (a-z, A-Z or 0-9)
& Uppercase alphanumeric (A-Z or 0-9)
[...] Use brackets to encase optional parts of a mask

So for example, to force someone to enter a phone number in a US format, you would enter:

(999) 999-9999

Example Input Masks

File Description
(999) 999-9999 US format phone number
99999 5 character zip code
99999[-9999] 5 character zip code with optional 4 characters at end
99/99 Short date
99/99/9999 Long date