How to Handle Decimal and Thousands Separators in PDF Forms
Question details
The user needs to handle numeric inputs with varying decimal and thousands separators consistently across different devices and locales in a fillable PDF form.

- Product
- PDF Forms
- Device & OS
- not provided
- Scenario
- Creating a fillable PDF form for cross-locale tablet usage and importing numeric/percentage data from Excel.
- Observed behavior
- Importing Excel percentages produces format errors, and varying regional settings (comma vs. period) cause inconsistencies in numeric data handling due to limited JavaScript support.
Ensure you have editing permissions for the PDF form and check the default regional settings on the devices where the form will be used.
Configure Regional Number-Format Settings for Form Fields
Set specific number formats within the PDF form field properties to ensure consistent handling of decimal and thousands separators regardless of the device's locale.
Since PDF readers on tablets often have limited JavaScript support, relying on custom scripts for formatting can lead to errors. The most robust approach is to utilize the built-in regional format settings for each numeric field.
Open your PDF document in your PDF editor and activate the form editing mode to reveal all fillable fields.
Right-click on the specific numeric or percentage text field and select 'Properties' from the context menu.
Navigate to the 'Format' tab. In the 'Select format category' dropdown, choose 'Number'.
Select the exact 'Separator Style' required for your target locale (e.g., '1,234.56' for US/UK or '1.234,56' for European locales). Apply the changes and save the PDF.

Standardize Numeric Data Before Importing from Excel
Format your source data in Excel to match the PDF form's expected locale settings before importing to avoid formatting errors.
Create and Manage Fillable PDF Forms Easily with WPS Office
WPS Office provides robust PDF editing tools, allowing you to easily configure form field properties, set number formats, and ensure cross-device compatibility for your fillable PDF forms.
- 1. Open PDF in WPS Office: Launch WPS Office, open your PDF document, and navigate to the 'Form' tab.
- 2. Edit Form Field Properties: Add a new 'Text Field' or double-click an existing one to open the 'Text Field Properties' dialog box.
- 3. Configure Format Settings: Switch to the 'Format' tab, choose 'Number' from the category list, and select your preferred decimal and thousands separators.
- 4. Save and Distribute: Save the PDF form. The configured separator rules will now apply consistently across different devices and locales.

Frequently Asked Questions
Why do my percentage values show format errors when imported into PDF forms?
This usually happens when the imported Excel data contains actual percentage symbols or localized separators that the PDF field format doesn't recognize. Store them as pure numbers in Excel (e.g., 0.50) and let the PDF field handle the percentage formatting.
Can I use JavaScript to force a specific decimal separator in PDF forms?
Yes, you can use custom keystroke and formatting scripts. However, since many mobile and tablet PDF readers have limited or disabled JavaScript support, it's safer and more reliable to use the built-in field format properties.
How do I change the default separator style in my PDF form fields?
You can change the separator style by accessing the specific form field properties, selecting the 'Format' tab, choosing 'Number' as the category, and picking the appropriate separator format from the provided dropdown menu.




