How to Hide Calculated $0.00 Values in Acrobat PDF Forms
Question details
The user needs to hide or clear the $0.00 value in a calculated currency field when the source fields are empty in an Adobe Acrobat PDF form.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Creating or configuring a fillable PDF form that requires calculated currency fields, which may also be printed for manual completion.
- Observed behavior
- The calculated currency field automatically displays $0.00 when its dependent source fields are empty, rather than remaining blank.
Ensure you have the 'Prepare Form' tool enabled in Adobe Acrobat and verify that your source fields are correctly named before applying custom scripts.
Use a Custom Validation Script
Applying a simple JavaScript condition in the field's validation settings intercepts and clears the result if the calculation equals zero.
This is the standard and most reliable method. By placing the script in the Validate tab, the PDF evaluates the calculation first, and then clears the zero before applying currency formatting.
Open your document in Adobe Acrobat, go to the Tools menu, and select 'Prepare Form' to view all form fields.
Right-click on the calculated currency field that displays $0.00 and select 'Properties' from the context menu.
In the Properties dialog box, click on the 'Validate' tab at the top.
Select the 'Run custom validation script' radio button and click 'Edit'. Enter the following code exactly: if (event.value == 0) event.value = "";
Click 'OK' to close the JavaScript editor, then click 'Close' on the Properties window. Preview the form to ensure the $0.00 value is now hidden.

Use the Default Value Box as a Workaround
If the validation script method fails for your specific form setup, placing the script in the Default Value box can serve as an alternative.
Edit and Manage PDF Forms Easily with WPS Office
WPS Office includes a comprehensive PDF editor that allows you to effortlessly view, fill, and modify PDF forms. Enjoy a seamless experience handling complex documents without the high costs of specialized software.
- 1. Open your PDF form: Launch WPS Office and open your PDF form using the built-in PDF reader.
- 2. Access form tools: Navigate to the 'Form' or 'Edit' tab on the top ribbon to access the interactive form tools.
- 3. Fill or edit data: Click on any form field to input your data or adjust the field properties as needed.
- 4. Save and print: Once your form is perfectly filled out with no unwanted zero values, easily save or print the document directly from the application.

Frequently Asked Questions
Why does my calculated PDF field show $0.00 by default?
In Adobe Acrobat, when a calculation is applied to a field, the software treats empty source fields as mathematical zeros. If the result field is formatted as currency, it automatically displays this zero as $0.00.
Can I hide the $0.00 value without using JavaScript?
Unfortunately, standard PDF form calculations do not have a built-in toggle to hide zero values. A simple custom JavaScript validation or format script is required to clear the field when the result is zero.
Will hiding the zero value affect my actual calculations when data is entered?
No, hiding the $0.00 value using the validation script only changes how the zero is displayed. Once you enter numbers into the source fields, the calculation runs normally and displays the correct currency total.




