How to Calculate Totals from Yes or No Checkboxes in PDF Forms
Question details
The user needs to assign specific numerical values to "Yes" and "No" checkboxes in an interactive PDF form to calculate an automatic total.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Creating or modifying an interactive PDF form that requires a sum calculation based on the user's checkbox selections.
- Observed behavior
- The user needs to know the correct field property settings to convert a checkbox selection into a mathematical value and sum these values in a separate total field.
Ensure you are using a full desktop PDF editor with advanced form-building capabilities, as web-based or basic viewers often lack the functionality to configure form calculation scripts.
Set Export Values and Calculate Sum via Checkbox Properties
Assign numeric export values to individual checkboxes and use a calculation field to sum those values automatically.
To make checkboxes function as numbers in a calculation, they must be given an 'Export Value'. Once assigned, a separate text field can be instructed to monitor those checkboxes and sum up their assigned values whenever they are checked.
Right-click the first checkbox in your PDF form and select 'Properties' from the context menu.
Navigate to the 'Options' tab. In the 'Export Value' box, enter the numeric value you want this checkbox to represent (e.g., '1' for Yes, '0' for No, or any specific score).
Create or locate the text field where you want the total to appear. Right-click it, select 'Properties', and go to the 'Calculate' tab.
Choose 'Value is the sum (+) of the following fields'. Click the 'Pick' button and select all the checkbox fields that should contribute to this total.
Close the properties window and test your form by checking and unchecking the boxes. The total field should automatically update based on your selections.

Edit and Fill Interactive PDF Forms with WPS Office
If you need a reliable and lightweight tool to handle interactive PDF documents, WPS PDF provides comprehensive features for viewing, filling, and creating forms seamlessly.
- 1. Open your PDF form: Launch WPS Office and open the interactive PDF document you want to edit or fill.
- 2. Access form editing tools: Navigate to the 'Form' tab in the top menu to reveal the interactive form elements.
- 3. Manage checkboxes: Click 'Check Box' to add new options, or double-click existing checkboxes to adjust their properties and interactions.
- 4. Fill and save: Once the form is configured, you can easily fill in the required fields and click 'Save' to finalize your document.

Frequently Asked Questions
Why isn't my PDF total field calculating automatically?
Automatic calculation might be disabled in your PDF reader's preferences. In your PDF software, navigate to Preferences > Forms, and ensure the option to 'Automatically calculate field values' is checked.
Can I assign a negative value to a checkbox?
Yes. When setting up the 'Export Value' under the Options tab of the checkbox properties, you can type a negative number (e.g., -5). If checked, it will subtract that amount from the total sum.
Does checkbox calculation work in web browsers?
Most built-in web browser PDF viewers (like Chrome or Edge) can fill out basic interactive forms, but they often struggle with processing background calculations or executing JavaScript tied to form fields. It is recommended to use a dedicated desktop PDF editor.
How do I calculate an average instead of a sum?
In the total field's Properties, go to the Calculate tab. Instead of choosing 'Sum', select 'Average' from the built-in dropdown menu, and pick the fields you wish to include in the average calculation.




