How to Fix Adobe Acrobat Reset Form Button Using JavaScript
Question details
The user needs to troubleshoot and fix a non-functional built-in Reset Form button within a PDF document.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- The user is trying to clear data from a PDF form, but clicking the reset button has no effect on the document.
- Observed behavior
- The built-in Reset Form button fails to clear the form fields, often because it is attempting to target previously deleted or renamed fields.
Before altering your form's properties or adding JavaScript, save a backup copy of your PDF to prevent any accidental loss of your document's current configuration.
Use JavaScript to Replace the Built-In Reset Action
Bypass the broken built-in action by applying a document-level script that forces the entire form to reset correctly.
The default Reset Form action often fails if it was originally set to clear specific fields that have since been modified, renamed, or deleted. By replacing this built-in property with a standard JavaScript command, you ensure that the button globally resets all current fields without relying on outdated field configurations.
Launch Adobe Acrobat, open your PDF document, and select the 'Prepare Form' tool from the right-hand pane.
Right-click on the malfunctioning Reset Form button and choose 'Properties' from the context menu.
Navigate to the 'Actions' tab. Select the existing 'Reset a form' action in the lower window and click 'Delete'.
In the 'Select Action' dropdown menu, choose 'Run a JavaScript' and click the 'Add' button.
When the JavaScript Editor opens, type 'this.resetForm();' exactly as shown, then click 'OK' and close the properties window to test the button.

Create and Manage PDF Forms Seamlessly with WPS Office
If you frequently work with PDF documents and forms, WPS Office provides a streamlined, intuitive PDF editor. It simplifies form creation, filling, and data management without requiring you to write scripts or troubleshoot complex settings.
- 1. Open WPS Office: Launch the WPS Office application and select the 'PDF' tab from the main interface.
- 2. Load Your Form: Click 'Open' and select the PDF form document you need to interact with or edit.
- 3. Fill or Clear Fields: Navigate to the 'Form' tab to access built-in form controls. You can easily fill text boxes, select checkboxes, or clear your entries.
- 4. Save Document: Once your form is filled or reset, click the 'Save' icon to keep your document securely updated.

Frequently Asked Questions
Why did my Acrobat Reset Form button stop working?
This commonly happens when the reset button is configured to clear specific fields. If any of those specified fields are later renamed or deleted from the PDF, the built-in action breaks and fails to reset the remaining fields.
Will 'this.resetForm();' clear fields that are hidden?
Yes, unless you specify precise parameters in the script, the global 'this.resetForm();' command will clear all form fields in the document, including hidden ones, reverting them to their default states.
How do I fix the built-in action without using JavaScript?
To fix it without code, open the button's Properties, go to the Actions tab, and edit the 'Reset a form' action. Carefully review the field list and deselect any missing or deleted fields, ensuring only active fields are checked.




