How to Add Checkbox Prices and Control Radio Buttons in PDF Forms
Question details
The user needs to calculate a total price based on selected checkboxes and conditionally display radio buttons only when a specific checkbox is checked.

- Product
- PDF Form Editor
- Device & OS
- not provided
- Scenario
- Creating an interactive PDF form for event registration or ordering that requires conditional logic and automatic calculation.
- Observed behavior
- Requires setting up export values for checkboxes to act as prices and using interactive logic to control the visibility of a radio-button group.
Ensure your PDF editor supports form field creation and interactive actions, and verify that you have finalized the layout of your checkboxes and radio buttons on the document.
Calculate Totals Using Checkbox Export Values
Assign a monetary price to each checkbox so that a total text field can automatically calculate the sum of selected items.
By setting the export value of a checkbox to a numerical value, you can treat checkboxes as add-on prices in order forms. A separate text field can then be configured to sum up these values automatically.
Enter form editing mode, right-click the target checkbox, and select Properties to access the field settings.
Navigate to the Options tab in the Properties window and enter the specific price or numeric value in the Export Value field.
Create a new Text Field for the final total. Open its Properties, go to the Calculate tab, choose 'Value is the sum of the following fields', and select your pricing checkboxes from the list.

Control Radio Button Visibility via Mouse Up Actions
Set up conditional logic so that specific radio buttons only appear when a corresponding checkbox is selected.
Easily Create and Edit Interactive PDF Forms with WPS Office
WPS PDF provides robust tools for creating interactive PDF forms, including checkboxes, radio buttons, and text fields, making document collection and processing effortless.
- 1. Open Document: Open your PDF file in WPS Office.
- 2. Access Form Tools: Navigate to the 'Form' tab in the top ribbon to reveal form creation tools.
- 3. Insert Fields: Use the 'Check Box', 'Radio Button', and 'Text Field' tools to insert your interactive elements.
- 4. Adjust Properties: Double-click the inserted fields to adjust properties like export values, appearance, and interactive actions.

Frequently Asked Questions
Why isn't my total field updating when I check a box?
Ensure that the calculation order is set correctly in your PDF form properties and that the export values of your checkboxes are formatted as numbers rather than text strings.
Can I hide multiple fields with one checkbox action?
Yes, you can use JavaScript in the Mouse Up action to change the display property of multiple field names simultaneously, or group them logically to hide the entire group.
Are PDF form calculations compatible across different PDF viewers?
Basic calculations and standard interactive actions are highly compatible with most major PDF readers, including Acrobat and WPS PDF, but they may not function properly in stripped-down browser-based PDF viewers.




