How to Stop Adobe Acrobat from Recalculating PDF Form Fields
Question details
The user needs to prevent an Adobe Acrobat calculation script from automatically overwriting a value that was manually entered into a PDF form field.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Filling out interactive PDF forms where certain calculated fields require manual overrides by the user without the system recalculating and deleting the manual input.
- Observed behavior
- Acrobat's calculation scripts run automatically whenever any form value changes, immediately overwriting the user's manually entered numbers with the calculated result.
Ensure you have access to the 'Prepare Form' tool in Adobe Acrobat and note the exact names of both the calculation field and the new checkbox field you intend to create.
Use a Checkbox with Custom JavaScript to Control Calculation
Add a checkbox that users can select to manually override the field, utilizing a short script to prevent the calculation from running when checked.
By default, Adobe Acrobat calculation scripts trigger whenever any field on the form changes. To bypass this behavior, you must introduce a control mechanism to determine whether the script should execute or accept manual input.
Using a simple checkbox combined with a custom calculation script allows you to automatically detect the override state and pause calculations for that specific field.
Open your PDF in Adobe Acrobat, go to the 'Tools' menu, and select 'Prepare Form' to enter form editing mode.
Select the Checkbox icon from the top toolbar, place it near your calculation field, and name it specifically (for example, 'ManualOverride').
Right-click the text field that currently holds the calculation script and select 'Properties' from the context menu.
Navigate to the 'Calculate' tab in the Properties window, ensure 'Custom calculation script' is selected, and click the 'Edit' button.
Add this line at the very top of your existing script: event.rc = (this.getField("ManualOverride").value == "Off");
Click 'OK' to save the script, close the Properties window, and preview the form. When the checkbox is checked, the script will pause, allowing you to type manual values.

Create and Manage Interactive PDF Forms Easily with WPS Office
If you are looking for a straightforward way to manage, create, and fill out PDF forms, WPS PDF offers powerful form tools. It provides an intuitive interface for handling text fields, checkboxes, and form properties without requiring complex programming knowledge.
- 1. Open Your PDF: Launch WPS Office and open your PDF document using the WPS PDF tool.
- 2. Access Form Tools: Navigate to the 'Form' tab in the top ribbon to access all interactive form creation tools.
- 3. Insert Form Elements: Click on 'Text Field', 'Check Box', or 'Dropdown' to insert new form controls directly onto your document.
- 4. Configure Properties: Double-click any inserted form field to open its properties panel, where you can easily customize its appearance and formatting.

Frequently Asked Questions
Why does Adobe Acrobat keep changing my manually entered numbers in a form?
This happens because the field has an active calculation script assigned to it. By default, Acrobat triggers these calculation scripts whenever any field value changes anywhere in the form, which subsequently overwrites your manual input with the freshly calculated result.
Can I disable all PDF form calculations completely?
Yes. If you are just trying to fill out a form and want to stop all calculations, go to Edit > Preferences (Windows) or Acrobat > Preferences (Mac). Select 'Forms' from the left categories, and uncheck 'Automatically calculate field values'. Note that this will affect the entire document.
Do I need to know JavaScript to stop field recalculations in Acrobat?
While basic form building doesn't require coding, adding conditional logic (like pausing a calculation only when a checkbox is checked) requires inserting a short, single-line custom JavaScript command such as event.rc = false; to intercept the calculation event.




