How to Fix Tax Calculation Showing Zero After Resetting a PDF Form
Question details
The user needs to fix a PDF form where the tax calculation stops working and shows zero after the form is reset, despite other calculations working normally.

- Product
- Adobe Acrobat Pro DC
- Device & OS
- not provided
- Scenario
- Resetting a fillable PDF form that contains automatic tax and subtotal calculations.
- Observed behavior
- The tax calculation works initially but returns zero after the form is reset, while other calculations continue to function.
Ensure you have editing permissions for the PDF form and access to the form field properties or the prepare form tool in your PDF editor.
Set a Default Value for the Tax Rate Field
Prevent the tax rate from being cleared during a form reset by assigning it a permanent default value.
When a PDF form is reset, all user-input fields are cleared. If your tax rate is stored in a hidden or locked field without a default value, the reset action clears it to zero, breaking the calculation.
Enter the 'Prepare Form' mode in your PDF editor, right-click the tax rate field, and select 'Properties'.
In the Properties dialog box, click on the 'Options' tab at the top.
Enter your desired tax rate (e.g., 13 or 0.13 depending on your script) into the 'Default Value' text box.
Click 'Close', save the PDF, and click the form's reset button to verify that the tax rate persists and calculates correctly.

Verify and Adjust the Field Calculation Order
Ensure the subtotal is calculated before the tax and final total fields to prevent incorrect sequence errors.
Update the Custom Calculation Script
Modify the JavaScript calculation to fall back to a specific tax rate if the field is blank after a reset.
Manage and Fill PDF Forms with WPS Office
WPS Office provides a comprehensive PDF editor that allows you to easily fill, edit, and manage interactive PDF forms without dealing with complex calculation scripts.
- 1. Open your PDF file: Launch WPS Office and open the PDF form you need to fill or edit.
- 2. Access the Form tools: Navigate to the 'Form' tab on the top ribbon to view all interactive fields.
- 3. Fill and calculate: Enter your data into the form fields. Built-in calculations will update automatically based on the document presets.
- 4. Save the document: Click 'Save' or press Ctrl+S to preserve your form data and calculation results.

Frequently Asked Questions
Why do PDF calculations sometimes show zero after a form reset?
Resetting a form clears all user-input data, including hidden or referenced fields like tax rates. If a calculation depends on a cleared field that doesn't have a configured Default Value, the result will output as zero.
How does the calculation order affect PDF form totals?
PDF forms process calculations sequentially. If a Total field relies on a Subtotal field, but the Total is set to calculate first in the Calculation Order settings, it will use the Subtotal's empty state (zero) instead of the updated value.
Can I lock the tax rate field so it cannot be reset?
You can set a form field to 'Read Only' in its Properties menu to prevent manual user edits. However, a full form reset action executed by a button might still clear its value unless you have explicitly defined a Default Value in the Options tab.




