PDF Editing Issues

How to Use Periods Instead of Commas in PDF Form Fields

Olivia MillerOlivia Miller Nov 5, 2026 870 views

Question details

The user wants to manually input periods instead of commas in a numeric PDF form field, but the application restricts the input.

How to Use Periods Instead of Commas in PDF Form Fields
Product
PDF Editor
Device & OS
not provided
Scenario
Filling out or creating a numeric field in an interactive PDF form.
Observed behavior
The numeric field accepts commas but prevents the manual typing of periods, automatically applying locale-based formatting instead.
Before you start

Ensure you have form editing permissions for the PDF document, as changing field input behaviors requires accessing the form field properties.

Solution 1Recommended

Apply a Custom Format Script to the Numeric Field

Bypass the default locale-based number formatting by changing the field format category and applying a custom JavaScript.

By default, numeric fields in PDF applications apply formatting based on your system's locale settings. This means that even if the selected display pattern uses periods as thousands separators, the software may restrict you from typing them manually.

To allow users to manually type periods, you must remove the standard 'Number' format limitation and use a 'Custom' format script.

1
Enter Form Editing Mode

Open your PDF document and activate the form editing tools (usually found under 'Prepare Form' or 'Form' tabs).

2
Access Field Properties

Right-click the specific numeric form field that you want to modify and select 'Properties' from the context menu.

3
Navigate to the Format Settings

In the Properties dialog box, click on the 'Format' tab at the top.

4
Change Format Category

Click the 'Select format category' dropdown menu and change it from 'Number' to 'Custom'.

5
Add Custom Script

Enter your custom JavaScript code in the 'Custom Format Script' window to define the exact keystroke behaviors for periods and commas, then click 'OK' or 'Close' to apply.

Apply a Custom Format Script to the Numeric Field
Auto-Formatting Behavior: If you do not want to use a custom script, you can simply type the digits without separators. The PDF software will automatically format the number and insert the correct periods or commas based on the field's predefined pattern as soon as you click outside the text box.
Edit PDF Forms Easily

Create and Manage Interactive PDF Forms with WPS PDF

WPS Office includes a powerful PDF editor that allows you to easily create, customize, and fill out interactive PDF forms. You can adjust form field properties, manage text formats, and handle everyday document tasks seamlessly.

  1. 1. Open Your PDF: Launch WPS Office and open your PDF document.
  2. 2. Access Form Tools: Navigate to the 'Form' tab on the top ribbon to view all interactive form editing features.
  3. 3. Edit Field Properties: Double-click any text or numeric field to open its properties, where you can modify the formatting, appearance, and input rules.
  4. 4. Save the Document: Click 'Save' to ensure your new form field formatting is preserved for all users.
Easily edit and customize interactive PDF form fieldsFully compatible with Adobe Acrobat PDF formats and formsLightweight application with a clean, user-friendly interfaceFree basic PDF editing, reading, and form filling
QA img-9

Frequently Asked Questions

Why does my PDF form field only accept commas?

This happens because the form field is set to a 'Number' format that strictly follows the regional or locale settings of your operating system. If your region uses commas as decimal separators, the software restricts manual period inputs.

Can I change the decimal separator without using a script?

Yes, changing your PC's regional format settings (via the OS Control Panel or System Settings) to a region that uses periods for decimals will change the default input behavior across the PDF application.

Will periods appear if I just type the numbers and click away?

Yes. If the numeric field is configured with a display pattern that uses periods as thousands separators, the application will automatically insert them once you finish typing and exit the field, even if it prevented you from typing the periods manually.