How to Automatically Select Radio Buttons with a Checkbox in Adobe Acrobat
Question details
The user needs to automatically select a specific radio button option when a checkbox is clicked in a PDF form.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Configuring an interactive PDF form where checking a specific box should logically select related radio-button options rather than just making them read-only.
- Observed behavior
- The user is seeking the correct Adobe Acrobat JavaScript approach to link the state of a checkbox to a radio-button group's export value.
Ensure you have Adobe Acrobat Pro or Standard installed, as free PDF readers cannot edit form fields or add custom JavaScript to documents.
Add Custom JavaScript to the Checkbox Field
Use Adobe Acrobat's JavaScript editor within the checkbox properties to dynamically change the value of the radio button group when toggled.
To make a checkbox control a radio button group, you must set the radio group's value to match the specific export value of the desired radio button. This creates an automated and interactive experience for users filling out the form.
Open your PDF document in Adobe Acrobat, navigate to the 'Tools' menu, and click on 'Prepare Form' to enable field editing.
Right-click the target checkbox you want to use as a trigger and select 'Properties' from the context menu.
Switch to the 'Actions' tab. Select 'Mouse Up' for the 'Select Trigger' option, choose 'Run a JavaScript' for the 'Select Action' option, and click 'Add'.
In the JavaScript Editor, enter a script to assign the target export value to the radio group. For example: if (event.target.value !== 'Off') { this.getField('YourRadioGroup').value = 'Option1'; }. Replace 'YourRadioGroup' and 'Option1' with your exact field names.
Click 'OK' to save the script, close the properties window, and click 'Preview' or exit 'Prepare Form' mode. Click the checkbox to verify that the target radio button is selected automatically.

Create and Fill Interactive PDF Forms with WPS Office
WPS Office provides a comprehensive PDF editor that lets you easily manage, fill, and create interactive PDF forms. Whether you are checking boxes, filling text fields, or signing documents, WPS Office offers a seamless experience without needing complex programming knowledge.
- 1. Open the PDF File: Launch WPS Office and open your interactive PDF document using the built-in PDF tool.
- 2. Access Form Tools: Navigate to the 'Form' or 'Fill & Sign' tab on the top ribbon to view all interactive elements.
- 3. Interact with Checkboxes: Simply click on any checkbox or radio button on the page to toggle their selections instantly.
- 4. Save and Export: Once your form is completely filled, click 'Save' or 'Export to PDF' to secure your selections.

Frequently Asked Questions
How do I find the correct export value for my radio buttons in Acrobat?
Right-click the radio button while in 'Prepare Form' mode, select Properties, and navigate to the 'Options' tab. The 'Radio Button Choice' field displays the exact export value you must reference in your JavaScript code.
Why doesn't the radio button unselect when I uncheck the box?
The basic JavaScript 'if' statement only triggers when the box is checked. To handle the unchecking action, add an 'else' statement in your script to set the radio group's value to 'Off' (or another default value) when the checkbox value returns to 'Off'.
Will this JavaScript functionality work in free PDF viewing software?
Yes. While you need a premium editor like Adobe Acrobat to insert and configure the JavaScript, most standard modern PDF readers will correctly execute the script when a user interacts with the checkbox.




