Set PDF Dropdowns to N/A When a Checkbox Is Deselected in Acrobat
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.

- 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.
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.
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.
Open your PDF document in Adobe Acrobat, go to the Tools menu, and select "Prepare Form" to make the fields selectable.
Right-click the target checkbox (e.g., STATUS1) and select "Properties" from the context menu.
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.
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"; }
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.

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. Download WPS Office: Visit the official WPS website to download the free office suite for your operating system.
- 2. Install the Software: Run the installer and follow the on-screen instructions to set up WPS Office on your computer.
- 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.

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.




