How to Create Mutually Exclusive Checkboxes in Acrobat PDF Forms
Question details
The user needs to set up specific rules for checkboxes in a PDF form so that selecting certain options automatically clears or disables incompatible options.

- Product
- Adobe Acrobat PDF
- Device & OS
- not provided
- Scenario
- Creating an interactive PDF form where users must choose between a specific combination of tax options and an exclusive 'Pay per use' option.
- Observed behavior
- Currently, users can select conflicting checkboxes simultaneously. The goal is to enforce mutual exclusivity using form logic so that 'Pay per use' is disabled when other options are chosen, and vice versa.
Ensure you are using a PDF editor that supports JavaScript for interactive forms, such as Adobe Acrobat Pro, as standard PDF readers cannot create or edit form field scripts.
Use Form Field JavaScript to Enforce Mutual Exclusivity
Add custom JavaScript to the mouse-up event of your checkboxes to automatically uncheck or disable conflicting fields when a selection is made.
While radio buttons naturally allow for only one selection in a group, complex scenarios—like allowing a combination of multiple tax options while isolating a 'Pay per use' option—require custom scripting to enforce logic correctly.
Open your document in Adobe Acrobat, go to the 'Tools' menu, and select 'Prepare Form' to make the form fields editable.
Right-click the first checkbox (e.g., your Tax Option checkbox) and select 'Properties' from the context menu.
Navigate to the 'Actions' tab. Choose 'Mouse Up' as the Select Trigger, choose 'Run a JavaScript' from the Select Action dropdown menu, and click the 'Add' button.
In the JavaScript Editor, enter a script that clears the conflicting field. For example: if (event.target.value !== 'Off') { this.getField('PayPerUse').value = 'Off'; } Click OK to save.
Open the Properties for the 'Pay per use' checkbox, and add a similar Mouse Up JavaScript action that targets and turns 'Off' the tax and full-year checkboxes when selected.

Create Interactive PDF Forms with WPS Office
Instead of writing complex JavaScript for checkboxes, you can easily use WPS PDF to group Radio Buttons, naturally preventing multiple selections without writing any code. It is an excellent and lightweight tool for managing standard interactive PDF forms.
- 1. Open PDF Form Tools: Open your document in WPS PDF and navigate to the 'Form' tab on the top ribbon.
- 2. Insert Radio Buttons: Click on 'Radio Button' and draw the fields on your document where the mutually exclusive choices should appear.
- 3. Assign a Shared Field Name: Double-click each radio button to open its properties. Give every radio button in the group the exact same 'Field Name'.
- 4. Set Unique Export Values: Under the Options section in properties, set a different 'Export Value' for each button. Because they share the same name, WPS PDF will automatically make them mutually exclusive.

Frequently Asked Questions
Why can multiple checkboxes be selected at the same time in my PDF?
By default, checkboxes operate independently as binary true/false switches. Unlike radio buttons, which are designed for mutually exclusive choices when they share the same field name, checkboxes require custom JavaScript to restrict multiple selections.
How do I group radio buttons in a PDF form?
To group radio buttons so only one can be selected at a time, you must assign the exact same 'Field Name' to all radio buttons in that group, but ensure you assign a unique 'Export Value' (or Radio Button Choice) to each individual button.
Can I disable a PDF form field based on another field's selection?
Yes, using JavaScript in the field properties (under the Actions or Calculate tab), you can change the properties of other fields. You can use a script like this.getField('FieldName').readonly = true; to disable a field when a specific condition is met.




