How to Create a Check All Checkbox in an Acrobat PDF Form
Question details
The user wants to configure a master checkbox in a PDF form that can simultaneously select or clear multiple related checkboxes.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Designing an interactive PDF form with multiple checkbox options.
- Observed behavior
- Currently, users must check each box individually. The goal is to implement a functional 'Check All' master checkbox to improve form usability.
Ensure you have access to the form editing tools in your PDF application and that your target checkboxes are properly named with consistent export values.
Use JavaScript on the Master Checkbox's Mouse Up Event
Add a custom JavaScript action to the master checkbox to programmatically control the state of all related checkboxes in the form.
By utilizing a simple JavaScript loop triggered by a 'Mouse Up' event, you can change the state of multiple form fields simultaneously. This method is highly effective for grouping checkboxes under a single master control.
Open your PDF document in Adobe Acrobat and navigate to the 'Prepare Form' tool to view all interactive fields.
Right-click on your designated master 'Check All' checkbox and select 'Properties' from the context menu.
Navigate to the 'Actions' tab within the Properties window. Select 'Mouse Up' as the trigger, choose 'Run a JavaScript' from the Select Action dropdown menu, and click the 'Add' button.
Input a JavaScript code snippet that identifies the related checkbox fields. Set each field's value to its export value when the master box is checked, or to 'Off' when it is cleared. Click 'OK' to save the script.
Close the form editing mode or open the document in Acrobat Reader, then click your master checkbox to verify that it correctly selects and clears the related checkboxes.

Create Interactive PDF Forms Easily with WPS Office
WPS Office includes a robust PDF editor that allows you to view, edit, fill, and create interactive PDF forms effortlessly. Enjoy premium PDF features within a lightweight and highly compatible suite.
- 1. Open WPS PDF: Launch WPS Office and open your PDF document using the built-in PDF editor.
- 2. Access Form Tools: Navigate to the 'Form' tab on the top ribbon to reveal the interactive form creation tools.
- 3. Insert Checkboxes: Select the 'Checkbox' tool from the toolbar and click anywhere on the document page to insert a new checkbox field.
- 4. Edit Properties: Double-click the inserted checkbox to adjust its properties, appearance, and export values to suit your specific document needs.

Frequently Asked Questions
Why is my JavaScript not working in Acrobat Reader?
Ensure that JavaScript is enabled in your Acrobat Reader preferences (Edit > Preferences > JavaScript). Also, double-check that the field names in your script perfectly match the actual names of the checkboxes in your form.
Can I use a single master checkbox to control multiple groups of checkboxes?
Yes, you can modify your JavaScript to loop through different arrays of field names, allowing a single master checkbox to check or uncheck multiple distinct groups simultaneously.
What does 'Export Value' mean in PDF checkboxes?
The export value is the specific data that is submitted or recorded when a checkbox is selected. By default, it is often set to 'Yes', but you can customize it in the checkbox properties to match your database or reporting needs.
Do I need programming experience to create PDF forms?
Basic PDF forms with standard checkboxes, radio buttons, and text fields do not require programming. However, adding automated or conditional logic, such as a 'Check All' button, requires basic JavaScript knowledge.




