How to Select a PDF Checkbox by Clicking Its Label
Question details
The user wants to make a PDF form more user-friendly by enabling users to click the text label adjacent to a checkbox to select it, rather than requiring them to click exactly inside the small checkbox area.

- Product
- PDF Editor
- Device & OS
- not provided
- Scenario
- Creating or editing interactive PDF forms to improve user experience and accessibility.
- Observed behavior
- Standard PDF checkboxes only respond to clicks within the small box area. Users need a way to link the adjacent text label to the checkbox so that clicking the text triggers the checkbox action.
Ensure you are using a PDF editing tool that supports creating interactive form fields, adding buttons, and running custom JavaScript for forms.
Use a Transparent Button Over the Text Label
Place a transparent, clickable button over the text label and use a simple JavaScript action to toggle the associated checkbox when the text is clicked.
By default, PDF format does not natively link text labels to checkboxes like HTML does. To achieve this effect, you can overlay an invisible button on the text and script it to trigger the checkbox field.
Open your PDF in form editing mode. Select the target checkbox and note its exact Field Name from the properties panel (e.g., 'Checkbox1').
Select the 'Button' tool from the form controls menu and draw a new button directly over the text label next to your checkbox.
Double-click the new button to open its Properties. Under the 'Appearance' tab, set both the Border Color and Fill Color to 'No Color' so the text underneath remains visible.
Navigate to the 'Actions' tab in the Button Properties. Set 'Select Trigger' to 'Mouse Up' and 'Select Action' to 'Run a JavaScript'. Click 'Add'.
In the JavaScript editor, enter the code: this.getField('CheckboxName').checkThisBox(0, true); - Make sure to replace 'CheckboxName' with the exact name of your checkbox. Click OK and close the properties panel.

Create and Edit Interactive PDF Forms with WPS Office
WPS Office provides robust PDF editing capabilities, allowing you to easily add checkboxes, text fields, buttons, and other interactive elements to your PDF forms without hassle.
- 1. Open PDF in WPS: Launch WPS Office and open your PDF document.
- 2. Access Form Tools: Navigate to the 'Form' tab on the top ribbon to view all interactive field options.
- 3. Add Checkboxes: Click the Checkbox icon and draw it anywhere on your document to place the field.
- 4. Edit Properties: Double-click the checkbox to adjust its name, appearance, and export values to suit your needs.
- 5. Save and Export: Save your newly interactive PDF form to easily share it with others.

Frequently Asked Questions
Can I simply group the text and checkbox together to make the text clickable?
No. In the standard PDF format, checkboxes and text elements are treated as entirely separate layers. You cannot simply group them to extend the clickable area, which is why a transparent button overlay with a script is required.
Does this JavaScript action work on all PDF viewers?
Most modern desktop PDF viewers, including Adobe Acrobat and WPS Office, fully support JavaScript for form fields. However, some basic mobile PDF readers or web browser viewers may disable scripts for security reasons, rendering the transparent button inactive.
How do I make the text label uncheck the box if it is already checked?
Instead of using the basic 'checkThisBox' script, you need to use a conditional script. You can retrieve the field's current value using 'this.getField('CheckboxName').value' and write an if/else statement to set the value to 'Off' if it is currently 'Yes', and vice versa.




