Automatically Uncheck a NONE Checkbox in an Acrobat Form
Question details
Configure an Acrobat form so selecting any of four checkboxes clears a NONE checkbox.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- A PDF form has four option checkboxes and a separate NONE checkbox that should be selected by default.
- Observed behavior
- Selecting any of the four option checkboxes should uncheck NONE.
Open the PDF in a version of Adobe Acrobat that can edit form fields, and confirm that the NONE checkbox field is named exactly NONE. The four option checkboxes should already exist.
Add a Mouse Up JavaScript action to each option checkbox
Use this action to clear NONE whenever a user selects one of the four option checkboxes.
Open the PDF in Acrobat and select All tools > Prepare a form.
Double-click the NONE checkbox, open the Options tab, and select the option to make the checkbox checked by default.
Double-click the first option checkbox. On the Actions tab, select Mouse Up as the trigger and Run a JavaScript as the action, then click Add.
In the JavaScript editor, enter: if (event.target.value != "Off") this.getField("NONE").value = "Off"; Then confirm the script and close the checkbox properties.
Add the same Mouse Up action to each of the other three option checkboxes. Save the PDF, preview the form, and select each option to confirm that NONE is cleared.

Edit PDFs and Office files with WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface for working with PDFs and everyday documents. Its format compatibility makes it easy to move existing Office files into your workflow. It does not replace Acrobat's form JavaScript editor for this checkbox action.

Frequently Asked Questions
Why does the script use the field name NONE?
The expression this.getField("NONE") identifies the checkbox to clear. If its actual field name is different, replace NONE in the script with the exact name shown in the field properties.
Will NONE be selected again when I clear all four options?
No. The Mouse Up script only clears NONE when an option is selected. Automatically reselecting NONE requires additional logic.
Why doesn't the checkbox action work in my PDF viewer?
The viewer must support and allow PDF form JavaScript. In Acrobat or Reader, check the JavaScript settings under Preferences, then test the form again.
Can users select NONE after selecting another option?
Yes. This script does not stop users from manually selecting NONE alongside an option. Preventing that combination requires an additional action on the NONE checkbox.




