How to Calculate a Running Total from Checkbox Values in PDF Forms
Question details
The user needs to set up a total field in a PDF form that dynamically calculates an accumulated score based on the selected checkboxes.

- Product
- Adobe Acrobat / PDF Editor
- Device & OS
- not provided
- Scenario
- Creating a grading or interactive scoring PDF where checkboxes represent specific point values that need to be tallied.
- Observed behavior
- The user requires a text field to act as a running total, continuously summing the specific export values (like 1 and 0.5) of any checked boxes.
Ensure all checkboxes in your document are already created and have their numerical export values (e.g., 1 or 0.5) correctly assigned in their properties.
Use the Built-In Sum Function in the Total Field
Configure the Calculate tab of your Total text field to automatically sum the export values of selected checkboxes.
PDF forms include built-in calculation functions that allow designated text fields to process the values of other form fields. By assigning an export value to your checkboxes, you can easily add them together using the standard Sum function.
Enter the form editing mode. Right-click the 'Total' text field where you want the accumulated score to appear, and select 'Properties'.
In the Text Field Properties dialog box, click on the 'Calculate' tab.
Choose the option 'Value is the sum (+) of the following fields'.
Click the 'Pick...' button and select all the checkbox fields that you want to include in your running total calculation. Click 'OK' and close the properties window.

Create and Calculate Interactive PDF Forms with WPS Office
Easily create interactive forms, add checkboxes with specific export values, and set up automatic calculation fields using WPS PDF. It provides a comprehensive set of tools for building professional and dynamic documents.
- 1. Open your PDF: Launch WPS Office and open your PDF document.
- 2. Access Form tools: Navigate to the 'Form' tab on the top ribbon to reveal the interactive form editing tools.
- 3. Add checkboxes and values: Insert your Checkbox fields. Double-click each checkbox to open its Properties and assign the desired export value.
- 4. Set up the total field: Insert a Text Field for the total. Open its Properties, go to the Calculate section, and select the sum of your designated checkboxes.

Frequently Asked Questions
How do I assign specific export values to checkboxes in a PDF form?
Right-click the checkbox in form editing mode, select Properties, and navigate to the Options tab. Enter your specific numerical value (such as 1 or 0.5) into the 'Export Value' field.
Why is my running total displaying the wrong calculation result?
This typically happens due to an incorrect form calculation order. You need to review the calculation order in your PDF editor's form preparation settings and ensure the total text field is ordered to calculate after the checkboxes are processed.
Can I perform custom calculations instead of a simple sum?
Yes. In the Calculate tab of the text field properties, you can choose 'Custom calculation script' instead of the built-in Sum function. This allows you to write JavaScript to perform more complex operations like multiplication, averages, or conditional scoring.




