How to Format Placeholder Currency Values in Adobe Acrobat Forms
Question details
The user needs to set up a placeholder value (such as a zero) with specific financial formatting in a PDF form field without breaking the built-in currency scripts.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Creating or editing an interactive PDF form that requires a formatted currency placeholder before the user inputs actual data.
- Observed behavior
- Replacing the built-in Format script with custom placeholder logic breaks the native currency formatting, preventing the field from properly displaying a dollar sign, comma separators, and zero decimal places.
Ensure you are using a PDF editing application like Adobe Acrobat Pro that supports creating and editing interactive form field properties and JavaScript actions, as basic readers cannot modify these settings.
Use Standard Currency Formatting with Focus Scripts
Retain Acrobat's native currency format for the field and use JavaScript on the On Focus and On Blur events to dynamically hide or show the placeholder text.
Instead of writing a custom formatting script that overrides Acrobat's built-in currency features, it is best practice to handle the placeholder behavior via event triggers. This ensures that once the user types a real number, it automatically formats as a currency.
Right-click the target text field in your PDF form and select 'Properties' from the context menu.
Navigate to the 'Format' tab. Select 'Number' from the category dropdown. Set 'Decimal Places' to 0, choose a comma for the separator style, and select the Dollar symbol.
Switch to the 'Actions' tab. Select 'On Focus' from the Select Trigger dropdown, choose 'Run a JavaScript', and click 'Add'. Enter a script to clear the field if the value equals your placeholder (e.g., if (event.target.value == '0') event.target.value = '';).
Add another action using the 'On Blur' trigger. Select 'Run a JavaScript', click 'Add', and enter a script to restore the placeholder if the user leaves the field empty (e.g., if (event.target.value == '') event.target.value = '0';).

Edit and Fill PDF Forms Smoothly with WPS Office
WPS Office offers a powerful, user-friendly PDF editor that allows you to effortlessly interact with, fill out, and manage complex PDF forms. Enjoy advanced formatting controls and intuitive document handling without the high subscription costs.
- 1. Open Your PDF Form: Launch WPS Office and open your interactive PDF document using the WPS PDF tool.
- 2. Access Form Tools: Navigate to the 'Form' or 'Fill & Sign' tab on the top ribbon to access the interactive data entry features.
- 3. Input Financial Data: Click directly into the text fields to input your numbers. The document will retain its native formatting rules.
- 4. Save and Export: Once completed, click 'Save' or export your filled PDF securely to share with others.

Frequently Asked Questions
Why does my custom script break the native currency format in Acrobat?
Acrobat uses specific internal scripts to handle the 'Number' or 'Special' format categories. When you replace the built-in Format script with your own custom placeholder logic, you overwrite Acrobat's native currency handling, causing it to lose the dollar sign and separators.
Can I simply set a default value in the field options instead?
Yes, you can set a default value in the 'Options' tab of the text field properties. However, a default value behaves like hardcoded input. Unlike a scripted placeholder that automatically clears when clicked, the user will have to manually delete the default value before typing.
How do I remove decimal places from my PDF currency fields?
To remove decimal places, open the Text Field Properties, navigate to the 'Format' tab, select the 'Number' category, and change the 'Decimal Places' dropdown value to 0.
Does WPS Office support filling out interactive PDF forms created in Adobe?
Yes, WPS Office includes a highly compatible PDF reader and editor that flawlessly supports interactive PDF forms. You can easily fill out, save, and print forms originally created in Adobe Acrobat.




