Make One Checkbox Check Multiple Checkboxes in Adobe Acrobat
Question details
The user wants one PDF checkbox to control multiple checkboxes or to have multiple checkboxes activate another checkbox.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- The user is creating an interactive PDF form with related checkbox fields.
- Observed behavior
- Checking or clearing a controlling checkbox should update related checkboxes, or checking a source checkbox should activate a separate checkbox.
Open an editable PDF form in Adobe Acrobat and choose All tools > Prepare a form. Note the exact field names and checkbox export values in each field's Properties dialog.
Use a controlling checkbox to update multiple checkboxes
Use a JavaScript action when one checkbox should check or clear a numbered group of fields.
This example uses a separate controlling checkbox and seven target fields named Check Box1 through Check Box7. The script reads the controlling field's value and applies its state to the targets.
In All tools > Prepare a form, open each target checkbox's Properties and set its name to Check Box1, Check Box2, and so on through Check Box7. Keep the controlling checkbox under a different name.
Open the controlling checkbox's Properties, select Actions, choose Mouse Up as the trigger and Run a JavaScript as the action, then click Add.
In the JavaScript editor, enter: for (var i = 1; i <= 7; i++) { this.getField("Check Box" + i).checkThisBox(0, event.target.value == "Off" ? false : true); } Change the field-name prefix and number range to match your form, then confirm and close Properties.
Close form editing or select Preview, then check and clear the controlling checkbox. Confirm that every target follows it and that the PDF viewer permits JavaScript.

Make source checkboxes activate a separate checkbox
Use this one-way action when interacting with any source checkbox should turn on a shared checkbox.
Work with PDFs and Office files in WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface and support for common Office formats, making it easy to move everyday documents into WPS. Its PDF tools provide an alternative for viewing and editing PDFs, but they do not replace the Acrobat JavaScript setup described above.

Frequently Asked Questions
Where do I add JavaScript to an Acrobat checkbox?
Choose All tools > Prepare a form, open the checkbox's Properties, and go to Actions. Select Mouse Up and Run a JavaScript, then click Add.
How do I adapt the script for a different number of checkboxes?
Change the loop limit from 7 to the number of target fields and replace the Check Box prefix with the exact prefix used in your form. The target names must match the names generated by the script.
Can the separate checkbox turn on only when all source boxes are checked?
Yes. That requires different logic from the one-way Mouse Up action. A hidden text field with a custom calculation script can check the source fields and update the target based on whether all are selected.
Why does the controlling checkbox appear to update targets one click late?
The Mouse Up action may be reading the checkbox value before the new state is available. Test the form in Acrobat and review the event timing and script rather than assuming the target field names are the only issue.




