🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Input Masks & Formatting Premium Add-on Setup Guide

Updated 8 min read Gravity Forms Fields & Inputs
On this page
  1. Video walkthrough
  2. Step 1: Install and Activate Your License
  3. Step 2: Open the Formatting Settings
  4. Step 3: Choose a Format
  5. Ready-made formats
  6. Custom masks
  7. Numbers and amounts
  8. Step 4: Clean-up Options
  9. Transform on Save: Find and Replace, Emoji Removal (new in 1.1.0)
  10. Emoji and symbols
  11. Find and replace
  12. How the rules run
  13. Where the cleaned value appears
  14. Updating from 1.0.0
  15. Step 5: What Visitors See
  16. Step 6: How Values Are Saved
  17. Limits and What Is Not Included in v1.0
  18. Troubleshooting & FAQ
  19. Typing is jumpy or characters appear twice.
  20. My pattern is ignored.
  21. Calculations use the wrong number.
  22. Can I format the Address state or country?
  23. What happens when I uninstall the add-on?

Video walkthrough

Gravity Forms Input Masks: Format Phones, Cards, Amounts and Dates as You Type
Video: format phone, card, amount and date fields as people type. Watch on YouTube

The Gravity Forms Input Masks & Formatting Premium Add-on keeps form data clean while visitors type: dates in one format, IBANs that pass the bank checksum, postcodes with the right spacing, names with capital letters and amounts with the right separators. The same rules run again on the server when the form is submitted.

If you also collect bank account numbers, add the Gravity Forms IBAN validator field to validate them before submission.

This guide covers installation, the formats, the clean-up options, what visitors see, how values are saved, the limits of version 1.0 and troubleshooting.

System Requirements & Prerequisites

  • WordPress: Version 6.5 or higher
  • PHP: Version 7.4 or higher
  • Gravity Forms: Version 2.9 or higher, any licence
  • GravityExtra license: The add-on installed, activated and licensed with an active GravityExtra license key

Step 1: Install and Activate Your License

  1. In WordPress go to Plugins → Add New → Upload Plugin, upload the add-on ZIP file and click Activate.
  2. Go to Forms → Settings → Input Masks, enter your key in the Gravity Extra License section and click Activate License.

Step 2: Open the Formatting Settings

Open a form in the form editor, select a field and open its Appearance tab. The Formatting settings are at the bottom.

  • Single Line Text fields get every option: formats, numbers, letter case, allowed characters, spaces, patterns and how the value is saved.
  • Paragraph Text, Name, Address and Email fields get letter case, allowed characters and space clean-up. For Address fields, the state and country drop-downs are left as chosen.
Formatting settings in the Appearance tab with Number or amount selected: 2 decimals, thousands separator 1.000, decimal mark 0,50, Before euro sign, Min 10, Letter case UPPERCASE and Allowed characters Letters, digits and
The Formatting settings of a Single Line Text field.

If the field also uses the built-in Gravity Forms Input Mask setting, turn that off when you choose a format here.

Step 3: Choose a Format

Ready-made formats

  • Dates: DD/MM/YYYY, MM/DD/YYYY or YYYY-MM-DD. The separators are added while typing and impossible dates such as 31/02 are refused.
  • Time: 24-hour HH:MM between 00:00 and 23:59.
  • IBAN: grouped in blocks of four, in capitals, and checked with the international IBAN checksum, so most typing mistakes are caught before the form is sent.
  • UK postcode: capitals and the space in the right place (sw1a1aa becomes SW1A 1AA).
  • Canadian postal code (A1A 1A1), US ZIP code (12345 or 12345-6789), US EIN (12-3456789) and UK sort code (12-34-56).
  • EU VAT number: capitals without spaces, starting with a valid EU country code. The number is checked for its shape, not looked up in the official register.

Custom masks

Choose Custom mask and type the mask: 9 is a digit, a a letter and * a letter or digit. Everything else, such as dashes, slashes and spaces, is added automatically. Put ? before an optional end, for example 99999?-9999. Use \9 if you need a literal 9. Combine a mask with UPPERCASE for codes like aa-9999 → AB-1234.

Numbers and amounts

Choose Number or amount and set the number of decimals, the thousands separator (1,000, 1.000, 1 000, 1’000 or none), the decimal mark, text before and after the number (such as $, € or kg) and an optional minimum and maximum. Visitors type 1234.5 and see $1,234.50 when they leave the field.

Step 4: Clean-up Options

  • Letter case: UPPERCASE, lowercase, Title Case (each word, also after hyphens and apostrophes: Mary-Jane O’Neil) or Sentence case.
  • Allowed characters: letters only, digits only, letters and digits, or letters and digits plus characters you list (for example &. for company names).
  • Remove extra spaces: trims the value and turns double spaces into one.
  • Must match pattern: a regular expression the value must match, with your own message, for example [A-Z]{3}-[0-9]{3} and “Use three letters, a dash and three digits.”

Transform on Save: Find and Replace, Emoji Removal (new in 1.1.0)

Some clean-up is easier to describe as “change this into that” than as a format: short forms written out, words that must always be spelled one way, or remarks in brackets you do not need. Version 1.1.0 adds two per-field settings for this, under Transform on save, at the end of the Formatting block on the field’s Appearance tab.

They are available on Single Line Text, Paragraph Text, Name, Address and Email fields that have No format. On a field with a mask, a number format or a ready-made format (date, IBAN, postcode, VAT number and so on) the block is hidden, because the format already keeps only the characters it needs.

Transform on save settings of a Paragraph Text field: Emoji and symbols set to Remove emoji and other symbols, and three find and replace rules: gluten free to gluten-free, veggie to vegetarian, and the simple pattern space (*) with an empty replacement
Emoji removal and three find and replace rules on an Order notes field.

Emoji and symbols

  • Keep: nothing is removed (the default).
  • Remove emoji: removes every emoji, including combined emoji such as families, emoji with a skin tone, flags and keycaps. Text symbols that are not shown as emoji, such as © ® ™ and plain arrows, stay.
  • Remove emoji and other symbols: also removes pictographic symbols such as ★ ✓ → ☎ ♥ © ™. Mathematical signs (+ = × ÷), currency signs and punctuation stay.

Letters of every script, accents and digits are kept in both modes: “Nguyễn Thị Ánh”, Chinese, Japanese, Korean, Arabic, Hebrew and Cyrillic text stay exactly as typed. Tick Remove extra spaces as well to tidy the gap an emoji leaves behind. Emoji are removed as soon as the visitor leaves the field, and again on the server when the form is sent, also when JavaScript is off.

Find and replace

Click Add rule to add a row. Each rule has a Find text (up to 100 characters), a Replace with text (up to 200 characters; leave it empty to remove what was found), the choice Text or Simple pattern, and Match case (when ticked, “Mr” does not match “MR”). Use the arrow button to move a rule up and the × button to remove it. A field can have up to 20 rules.

Simple pattern knows two wildcards:

  • * matches any run of characters, as short as possible. (*) with an empty replacement removes a remark in brackets: “About 40 guests (maybe 45).” is saved as “About 40 guests.” A * at the end of the pattern takes the rest of the text.
  • ? matches exactly one character: INV-???? matches “INV-2048”.
  • Write \*, \? and \\ for the characters themselves. Nothing else is special: brackets, dots and dollar signs are plain text, and the replacement is used exactly as typed.

How the rules run

  • In the order of the list. Each rule replaces every match from left to right and does not look at its own replacements again, so “Mr” to “Mr.” gives “Mr. Hart”, never “Mr.. Hart”.
  • After the other clean-up steps (letter case, allowed characters, spaces), so your replacement text is saved exactly as you typed it.
  • Once, when the entry is saved. Visitors do not see the replacements while they fill in the form, and moving between pages or seeing an error message does not apply them twice.
  • If a rule would leave a required field empty (for example “N/A” replaced with nothing), the visitor sees “This field is required.”
Gravity Forms entry with the cleaned values: Full name Amelia Hart, Delivery address 27 Harbour Road, Brighton BN2 1TW, a lower-case email address, and Order notes without emoji, stars or the remark in brackets
The saved entry: “rd.” became “Road”, “veggie” became “vegetarian”, and the emoji, stars and remark in brackets are gone.

Where the cleaned value appears

The cleaned value is the value Gravity Forms saves with the entry, so notifications, merge tags, {all_fields}, PDFs, the entry list, exports and feeds all use it. When an administrator edits an entry in wp-admin, or another plugin changes a value later, the rules are not applied again. Entries saved before you added a rule are not changed.

Good to know: matching compares single characters, so “é” typed as one character and “e” plus an accent mark are different; with Match case off, “ß” does not match “SS”.

Updating from 1.0.0

Install 1.1.0 over 1.0.0 (same plugin folder) or update from the Plugins screen. Your formats, settings and entries are kept, and fields without the new settings work exactly as before.

Step 5: What Visitors See

Formats are applied while typing; the expected format is shown as a placeholder (for example DD/MM/YYYY) and phones show the number keyboard for numeric formats. When the visitor leaves a field with a value that is not valid, a short message appears under it and the field is marked for screen readers. The message disappears as soon as the value is fixed.

Form with Delivery date 28/02/2026, an IBAN with a red border and the message Please check the IBAN: it is not a valid bank account number, Postcode SW1A 1AA and Budget $1,234.50
Formatting while typing and a clear message when a value is not valid.

The same rules run on the server when the form is submitted, so values are formatted and checked even if JavaScript is off or the form is submitted another way.

Step 6: How Values Are Saved

By default the entry stores the value as shown, for example GB82 WEST 1234 5698 7654 32. For Single Line Text fields you can choose Only the typed characters / plain number under Save in the entry: the budget $1,234.50 is then stored as 1234.5 and the reference AB-1234 as AB1234, which is easier for calculations, exports and other systems.

Entry with Delivery date 25/12/2026, IBAN GB82 WEST 1234 5698 7654 32, Postcode SW1A 1AA, Budget saved as 1234.5, Reference AB-1234, Name Mary-Jane O'Neil and a lower-case email address
Clean values in the entry; the budget is saved as a plain number.

Limits and What Is Not Included in v1.0

  • Phone numbers are not part of this add-on; use the GravityExtra International Phone Number Mask add-on for phone fields.
  • VAT numbers and IBANs are checked for their format and checksum, not looked up with a bank or tax authority.
  • Values already saved in old entries are not changed when you add a format later.
  • Without an active license, formatting and checks are paused and the fields behave like normal Gravity Forms fields.

Troubleshooting & FAQ

Typing is jumpy or characters appear twice.

The field probably also uses the Gravity Forms Input Mask setting. Turn it off in the field’s settings when you use a format from this add-on.

My pattern is ignored.

An invalid regular expression is skipped so the form keeps working. Test the pattern with a regular expression tester; it must match the whole value.

Calculations use the wrong number.

Choose Only the typed characters / plain number under Save in the entry, so the value is stored as a plain number.

Can I format the Address state or country?

No. They can be drop-downs, so they are left as chosen. Street, city and postcode get the case and spaces rules.

What happens when I uninstall the add-on?

Forms → Settings → Uninstall removes the add-on settings. The formatting settings stay in your forms and are used again if you reinstall.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr