PDF Editing Issues

How to Create a Check All Checkbox in an Acrobat PDF Form

Muhammad TalhaMuhammad Talha Nov 5, 2026 869 views

Question details

The user wants to configure a master checkbox in a PDF form that can simultaneously select or clear multiple related checkboxes.

How to Create a Check All Checkbox in an Acrobat PDF Form
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.
Before you start

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.

Solution 1Recommended

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.

1
Open Form Editing Mode

Open your PDF document in Adobe Acrobat and navigate to the 'Prepare Form' tool to view all interactive fields.

2
Access Master Checkbox Properties

Right-click on your designated master 'Check All' checkbox and select 'Properties' from the context menu.

3
Add a JavaScript Action

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.

4
Enter the Custom Script

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.

5
Test the Form

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.

Use JavaScript on the Master Checkbox's Mouse Up Event
Consistent Naming Conventions: Ensure your related checkboxes use consistent field names (e.g., group1.box1, group1.box2) so the JavaScript can easily identify and loop through them without affecting unrelated form elements.
Powerful PDF Form Editor

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. 1. Open WPS PDF: Launch WPS Office and open your PDF document using the built-in PDF editor.
  2. 2. Access Form Tools: Navigate to the 'Form' tab on the top ribbon to reveal the interactive form creation tools.
  3. 3. Insert Checkboxes: Select the 'Checkbox' tool from the toolbar and click anywhere on the document page to insert a new checkbox field.
  4. 4. Edit Properties: Double-click the inserted checkbox to adjust its properties, appearance, and export values to suit your specific document needs.
Easily add text fields, checkboxes, and radio buttons to your PDFs.Highly compatible with Adobe Acrobat PDF formats and interactive form elements.Lightweight software with an intuitive, user-friendly interface.Available across multiple platforms including Windows, Mac, and mobile devices.
QA img-9

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.