PDF Editing Issues

Set PDF Dropdowns to N/A When a Checkbox Is Deselected in Acrobat

Jason MillerJason Miller Nov 3, 2026 869 views

Question details

The user needs to automatically update the value of multiple dropdown fields to "N/A" when a specific checkbox is cleared in an Adobe Acrobat PDF form.

How to Set Acrobat Dropdowns to N/A When a Checkbox Is Deselected
Product
Adobe Acrobat
Device & OS
not provided
Scenario
Adding conditional logic to interactive PDF forms so that dependent fields reset based on a checkbox state.
Observed behavior
The user wants the 1.1 RAT, 1.2 RAT, and 1.3 RAT dropdowns to switch to the fifth option (N/A) immediately after the STATUS1 checkbox is unchecked.
Before you start

Verify the exact field names of your checkbox and dropdowns in your PDF form, and ensure that "N/A" is listed as an exact export value in your dropdown properties.

Solution 1Recommended

Use a Mouse Up JavaScript Action on the Checkbox

Apply a custom JavaScript snippet to the checkbox properties so the dropdowns update immediately when the user interacts with the form.

This method uses Acrobat's built-in JavaScript editor to trigger a script every time the checkbox is clicked. It checks the checked or unchecked state of the target box and updates the corresponding dropdown export values accordingly.

1
Open Prepare Form Mode

Open your PDF document in Adobe Acrobat, go to the Tools menu, and select "Prepare Form" to make the fields selectable.

2
Access Checkbox Properties

Right-click the target checkbox (e.g., STATUS1) and select "Properties" from the context menu.

3
Add a JavaScript Action

Navigate to the "Actions" tab. Choose "Mouse Up" as the Select Trigger, choose "Run a JavaScript" from the Select Action dropdown menu, and click the "Add" button.

4
Enter the Script

In the JavaScript Editor, type the following code: if(event.target.value == "Off") { this.getField("1.1 RAT").value = "N/A"; this.getField("1.2 RAT").value = "N/A"; this.getField("1.3 RAT").value = "N/A"; }

5
Save and Test

Click "OK" to save the script, then close the properties dialogue. Click "Preview" at the top right to test unchecking the box and verify the dropdowns change to N/A.

Use a Mouse Up JavaScript Action on the Checkbox
Check Export Values: The value assigned in the script (e.g., "N/A") must perfectly match the Export Value defined in the Options tab of your dropdown field properties. If the value differs or is misspelled, the script will fail to change the selection.
Free Microsoft Office alternative

Manage and Fill PDF Forms Easily with WPS Office

While advanced JavaScript configuration requires dedicated form creation tools like Adobe Acrobat, WPS Office provides a seamless, free alternative for everyday PDF reading, form filling, and editing alongside powerful Word, Excel, and PowerPoint alternatives.

  1. 1. Download WPS Office: Visit the official WPS website to download the free office suite for your operating system.
  2. 2. Install the Software: Run the installer and follow the on-screen instructions to set up WPS Office on your computer.
  3. 3. Open and Fill PDFs: Launch WPS PDF to open your form documents, easily fill in standard fields, and save or print your finished files.
Easily open, view, and fill out interactive PDF forms.High compatibility with Microsoft Word, Excel, and PowerPoint file formats.Lightweight installation with an intuitive, tabbed interface.Completely free to download and use for standard office productivity.
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't the dropdown change to N/A when I uncheck the box?

The most common reason is a mismatch in field names or export values. Ensure the JavaScript uses the exact field name (e.g., "1.1 RAT") and that "N/A" is set as an available export item in the dropdown's properties under the Options tab.

Can I apply this JavaScript to a document-level script instead of a Mouse Up event?

Yes, you can write a document-level function that handles the logic and call that function from the checkbox's Mouse Up event. This is especially useful if you have multiple checkboxes that require the exact same reset behavior.

What happens if the checkbox is checked again after being cleared?

The script provided only triggers an action if the box is turned off (using the condition event.target.value == "Off"). If you want the dropdowns to reset to a different default value when the box is checked again, you will need to add an 'else' statement to your JavaScript assigning the new desired values.