PDF Editing Issues

How to Format an Adobe Acrobat Number Field with Hyphens (e.g., 123-456-789)

Steven ParkerSteven Parker Nov 5, 2026 869 views

Question details

The user needs to format a text or number field in a PDF form so that it automatically inserts hyphens at specific positions when a user enters data.

How to Format a Number Field as 123-456-789 in Adobe Acrobat
Product
Adobe Acrobat
Device & OS
not provided
Scenario
Creating or editing a fillable PDF form where specific numeric formatting, such as adding hyphens for an ID or part number, is required.
Observed behavior
The user must apply a special arbitrary mask in the field properties to ensure the typed numbers are automatically formatted.
Before you start

Ensure you have permission to edit the PDF document and access to the 'Prepare Form' tools within your PDF software.

Solution 1Recommended

Apply an Arbitrary Mask in Field Properties

Use Adobe Acrobat's built-in formatting options to set a custom arbitrary mask that forces numeric input into a specific patterned format.

By setting up an arbitrary mask, you ensure consistent data entry. The mask uses specific placeholder characters, like '9' for numbers and 'A' for letters, to dictate how the data will appear.

1
Open the Prepare Form Tool

Launch your PDF document, navigate to the 'Tools' pane on the right side, and select 'Prepare Form'.

2
Access Field Properties

Locate the text field you want to modify, right-click on it, and select 'Properties' from the context menu.

3
Navigate to the Format Tab

In the Properties window, click on the 'Format' tab. Click the 'Select format category' dropdown menu and choose 'Special'.

4
Set the Arbitrary Mask

From the list of special formats, select 'Arbitrary Mask'. In the text box that appears, enter '999-999-999'.

5
Save and Test

Click 'Close' to apply the properties, then click the 'Preview' button at the top right to test typing numbers into the field to ensure the hyphens appear automatically.

Apply an Arbitrary Mask in Field Properties
Using Alphanumeric Characters: If your form requires a mix of letters and numbers, use 'A' as a placeholder for alphabetic characters. For example, a mask of 'AA9-A99-999' will accept letters and numbers in that exact sequence.
Edit and Fill PDF Forms with WPS PDF

Easily Edit PDF Forms and Fields Using WPS Office

WPS Office includes a comprehensive PDF editor that allows you to read, edit, annotate, and manage PDF forms effortlessly, providing an excellent alternative for managing all your document needs.

  1. 1. Open WPS Office: Launch WPS Office and click on 'PDF Edit' or simply open your existing PDF document.
  2. 2. Access Form Tools: Navigate to the 'Form' tab on the top ribbon to view all available form creation and editing tools.
  3. 3. Edit Properties: Double-click on any text or number field to adjust its formatting, appearance, and specific data requirements.
  4. 4. Save and Export: Once your formatting is complete, save the PDF to ensure all form configurations remain intact for users.
Comprehensive PDF form editing and interactive field supportFully compatible with standard Adobe PDF documents and formatsLightweight, fast, and user-friendly interfaceEasily extract, merge, and convert PDF data to Word or Excel
microsoft office alternative - wps office

Frequently Asked Questions

What does the '9' mean in an arbitrary mask?

In an arbitrary mask format, the number '9' acts as a strict placeholder that accepts only numeric digits (0 through 9). It prevents users from entering letters or symbols in those positions.

How do I format a field to accept letters and numbers with hyphens?

You can use 'A' for alphabetic characters and '9' for numeric digits in the Arbitrary Mask. For instance, 'AA9-A99' accepts two letters, one number, a hyphen, a letter, and two numbers.

Can I use other static characters besides hyphens?

Yes, you can insert static characters like parentheses, slashes, or spaces directly into the arbitrary mask. For example, '(999) 999-9999' is commonly used for a standard US phone number format.

Why isn't my arbitrary mask working when I type?

Ensure that the field is configured as a standard text field and that no conflicting validation scripts are active. Additionally, make sure you preview the document or save it, as formatting typically applies upon clicking outside the field or during direct input.