How to Format Comma-Separated Numbers in PDF Form Fields
Question details
The user needs to properly configure a PDF form field to handle comma-separated numbers without ignoring digits entered after a manual comma.

- Product
- PDF Forms
- Device & OS
- not provided
- Scenario
- Entering numerical data with thousands or decimal separators into an interactive PDF form field.
- Observed behavior
- When users manually type a comma in the number field, the system ignores the digits following the comma.
Identify whether the comma is intended to serve as a thousands separator or a decimal separator based on the locale of your target audience.
Use Built-in Number Formatting Settings
Configure the field properties to automatically handle standard number formatting, which prevents manual entry errors.
Relying on built-in number formatting is the most reliable way to ensure data consistency. Users enter raw digits, and the software automatically applies the appropriate thousands and decimal separators based on the chosen format.
Open your PDF form in edit mode, right-click the specific text field, and select Properties from the context menu.
Click on the Format tab at the top of the Properties dialog box.
Click the Select Format Category dropdown menu and choose Number.
Set your preferred Decimal Places, then choose the correct Separator Style for your locale (for example, '1,234.56' for standard US thousands separators).

Apply Custom Keystroke and Validation Scripts
Use JavaScript to handle custom input behaviors if the field must accept multiple formats or strict manual comma entries.
Create and Format Interactive PDF Forms with WPS Office
WPS PDF offers comprehensive tools to design interactive PDF forms, including advanced field formatting, ensuring seamless data entry and compatibility across devices.
- 1. Open the PDF: Launch WPS Office and open your PDF document containing the forms.
- 2. Access form tools: Navigate to the Form tab on the top ribbon to access the interactive form creation tools.
- 3. Edit field properties: Add a Text Field or double-click an existing one to open its Properties window.
- 4. Set number formatting: Switch to the Format tab, change the category to Number, and select your desired thousands and decimal separator style.
- 5. Save and test: Save your PDF document and test the field by entering raw digits to see the automatic formatting apply.

Frequently Asked Questions
Why are the numbers after the comma disappearing in my PDF form?
This usually happens because the field is formatted to treat the comma as a specific separator. If a user manually types a comma where the system's formatting script doesn't expect it, the script fails to parse the subsequent digits and ignores them.
Can I force users to enter numbers without typing the commas themselves?
Yes. By setting the field format to 'Number' and specifying a separator style, users can simply type the raw digits. The PDF software will automatically add the thousands separators when they finish typing and click out of the field.
How do I change the thousands separator from a comma to a period for European locales?
In the form field Properties under the Format tab, select the 'Number' category. Choose the 'Separator Style' dropdown that matches your locale requirements, such as '1.234,56' which uses a period for thousands and a comma for decimals.




