PDF Editing Issues

How to Fix Adobe Acrobat Reset Form Button Using JavaScript

Aamir Naveed AkramAamir Naveed Akram Nov 5, 2026 870 views

Question details

The user needs to troubleshoot and fix a non-functional built-in Reset Form button within a PDF document.

How to Fix the Adobe Acrobat Reset Form Button Using JavaScript
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 you start

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.

Solution 1Recommended

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.

1
Open Prepare Form Mode

Launch Adobe Acrobat, open your PDF document, and select the 'Prepare Form' tool from the right-hand pane.

2
Access Button Properties

Right-click on the malfunctioning Reset Form button and choose 'Properties' from the context menu.

3
Remove Broken Action

Navigate to the 'Actions' tab. Select the existing 'Reset a form' action in the lower window and click 'Delete'.

4
Add JavaScript Action

In the 'Select Action' dropdown menu, choose 'Run a JavaScript' and click the 'Add' button.

5
Insert Reset Code

When the JavaScript Editor opens, type 'this.resetForm();' exactly as shown, then click 'OK' and close the properties window to test the button.

Use JavaScript to Replace the Built-In Reset Action
Test the Button: Be sure to exit the 'Prepare Form' mode and click your updated button to verify that it successfully clears all data fields.
Easily Manage PDF Forms

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. 1. Open WPS Office: Launch the WPS Office application and select the 'PDF' tab from the main interface.
  2. 2. Load Your Form: Click 'Open' and select the PDF form document you need to interact with or edit.
  3. 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. 4. Save Document: Once your form is filled or reset, click the 'Save' icon to keep your document securely updated.
Built-in tools for straightforward PDF form filling, creating, and resetting.High compatibility with standard PDF files and Microsoft Office document formats.Lightweight software with an easy-to-navigate interface, perfect for daily document tasks.
microsoft office alternative - wps office

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.