How to Use Periods Instead of Commas in PDF Form Fields
Question details
The user wants to manually input periods instead of commas in a numeric PDF form field, but the application restricts the input.

- 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.
Ensure you have form editing permissions for the PDF document, as changing field input behaviors requires accessing the form field properties.
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.
Open your PDF document and activate the form editing tools (usually found under 'Prepare Form' or 'Form' tabs).
Right-click the specific numeric form field that you want to modify and select 'Properties' from the context menu.
In the Properties dialog box, click on the 'Format' tab at the top.
Click the 'Select format category' dropdown menu and change it from 'Number' to 'Custom'.
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.

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. Open Your PDF: Launch WPS Office and open your PDF document.
- 2. Access Form Tools: Navigate to the 'Form' tab on the top ribbon to view all interactive form editing features.
- 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. Save the Document: Click 'Save' to ensure your new form field formatting is preserved for all users.

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.




