Fix an Acrobat Checkbox That Does Not Clear a Text Field
Question details
Make a dependent text field clear when its checkbox is deselected or the PDF form is reset.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- A fillable PDF should display “See Below” in a text field only while a checkbox is selected.
- Observed behavior
- The text remains after the checkbox is cleared and after Clear Form is used.
Open the PDF in Acrobat and use Prepare a Form to identify the exact checkbox and text field names. Check the checkbox export value and whether the existing script is attached to a field calculation or a checkbox action.
Calculate the text field from the checkbox state
Use a custom calculation on the dependent text field to set or clear its value whenever the form recalculates.
In Acrobat, open the PDF and select All tools > Prepare a form. Double-click the checkbox to inspect its name and export value.
Double-click the dependent text field, select the Calculate tab, choose Custom calculation script, and select Edit.
Enter: event.value = ""; if (this.getField("Checkbox1").valueAsString !== "Off") event.value = "See Below"; Replace Checkbox1 with the exact checkbox field name, then select OK.
Inspect the checkbox's Actions tab and the text field's other scripts. Remove or revise any action that independently sets the text and conflicts with the calculation.
In Acrobat Preferences > Forms, enable Automatically calculate field values. Save the PDF, select and clear the checkbox, and use the form's Clear Form control to test the result.

View PDF Forms and Work With Office Files in WPS Office
WPS Office is a free, lightweight alternative for viewing PDFs and working with Office documents in a familiar interface. It offers a straightforward way to move between common file formats, but it does not repair Acrobat's form calculation scripts.

Frequently Asked Questions
Why does the text remain after I clear the checkbox?
A script that only assigns “See Below” when the checkbox is selected may never assign an empty value when it is cleared. Set event.value to an empty string before checking the checkbox in the text field's custom calculation.
Where should I put the calculation script?
In Acrobat's Prepare a Form tool, open the dependent text field's properties and go to Calculate > Custom calculation script > Edit. A checkbox Mouse Up action alone may not handle every form reset or recalculation.
How do I find the checkbox field name?
In Prepare a Form, double-click the checkbox and check its name in the field properties. Use that exact name in this.getField(), including capitalization.
Why does the text return after I reset the form?
Resetting a form restores field defaults. Check whether the checkbox is selected by default and whether another field action or script sets the text after the reset.




