How to Add and Set Up the Masked Input Widget on Your Form

March 3, 2026

Jotform’s Masked Input widget helps ensure users enter numeric data in a consistent and structured format, making it ideal for forms that collect financial figures, percentages, or measurements. By automatically applying formatting rules—such as decimal places, currency symbols, and thousand separators—the widget reduces input errors and simplifies data validation. This is especially useful in order forms, expense reports, or any scenario where clean, properly formatted numeric input is crucial.

Here are a few ways to use it:

  • Ensure phone numbers are entered in a consistent format.
  • Standardize date inputs to prevent formatting errors.
  • Collect credit card numbers in a structured pattern.
  • Format Social Security or national ID numbers correctly.
  • Enforce postal or ZIP code formatting rules.
  • Capture license plate numbers in a required structure.
  • Standardize employee or student ID entries.
  • Guide users when entering account or reference numbers.
  • Reduce input errors by displaying a clear typing pattern.
  • Improve data accuracy for forms that rely on strict formatting rules.

Whether you’re creating a new form or updating an existing one, you can add and set up the Masked Input widget on your form in a few easy steps. It only takes a minute to set up—here’s how:

  1. In Form Builder, click on Add Element on the left side of the page.
Add Element button in Jotform Form Builder
  1. Now, in the Form Elements menu, under the Widgets tab, search for Masked Input and click on it. Or just drag and drop it to where you want it on your form.
Masked Input in the Widget tab of the Jotform Form Builder
  1. Next, in the Masked Input Widget Settings menu that opens on the right side of the page, under the General tab, set up the following things:
    • Custom Pattern — Use a combination of symbols and the number ‘9’ to force an input mask. Number 9 represents number inputs. Setting this up will override other settings on this widget.
    • Number Precision — Set the number of decimal places.
    • Decimal Separator — Enter a text or symbol for decimal values. Leave it empty to use the default, which is the dot symbol.
Custom Pattern, Number Precision, and Decimal Separator in the Masked Input Widget Settings menu
  1. Then, scroll down to the middle and continue to set up these settings:
    • Thousandths Separator — Enter a sign or symbol to separate thousands or millions. Leave it empty to use the default, which is a comma.
    • Allow Numbers Only — Set this to correct the value to numbers by removing illegally entered characters.
    • Prefix — Set the text or symbol to be shown before the number. Leave it empty for none.
    • Default Value — Enter a value to be the default when your users view the form.
Thousands Separator, Allow Numbers Only, Prefix, and Default Value options in the Masked Input Widget Settings menu
  1. Now, scroll down to the bottom and complete these fields:
    • Suffix — Set the text or symbol to be shown after the number. Leave it empty for none.
    • Hide — Choose to show or hide the widget in the form, but keep the input masked, especially if you have a default value.
  2. Once everything’s set, click on Update.
Suffix, Hide options and Update button in the Masked Input Widget settings menu

That’s it! You’ve now successfully added and set up the Masked Input widget to your form. Take a peek at this Demo Form to see it in action.

Notes

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Podo Comment Be the first to comment.
Still have unanswered questions?

We’re here for you 24/7, anytime you need us day or night. Have a question or need a hand with something? Our team is always ready to help out.