Reset Only Original PDF Form Fields in Adobe Acrobat
Question details
The user needs a PDF form button to reset only fields on the original page, without resetting fields on spawned template pages.

- Product
- Adobe Acrobat PDF forms
- Device & OS
- not provided
- Scenario
- A PDF form includes a hidden template that can be spawned to create additional pages.
- Observed behavior
- The reset list also includes fields from spawned pages, although only the original page's fields should be reset.
Open the PDF in Adobe Acrobat and identify the exact field names on the original page and on a spawned page. Check that the original fields have distinct names from the spawned fields; fields sharing a name can share the same value.
Reset an Explicit List of Original PDF Form Fields
Use a button JavaScript action with the exact names of the original fields to leave separately named spawned fields unchanged.
The resetForm method restores the listed fields to their default values, which are not necessarily blank. Avoid calling it without an array, because that resets the entire form.
Use the exact names of individual fields rather than a parent field name that could include spawned child fields. If original and spawned fields share the same name, give them distinct names when spawning or editing the form.
Open All tools > Prepare a form in Acrobat. Select the original fields and inspect their names in Properties; compare them with the names on a spawned page.
In Prepare a form, open the reset button's Properties and select the Actions tab. Choose the Mouse Up trigger and a Run a JavaScript action, then add or edit the script.
Enter a script such as this.resetForm(["Field1", "Field2", "Field3"]); and replace the example names with the exact names of the original page's fields. Save the script and button properties.
Preview the form, spawn a template page, and enter different values in the original and spawned fields. Click the reset button and confirm that only the listed original fields return to their defaults.

Work With PDF Forms and Office Documents in WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface for working with PDF and Office files. It can help you migrate everyday document work, though it does not fix or guarantee support for Acrobat-specific form JavaScript.

Frequently Asked Questions
Why does resetting a field also affect a spawned page?
The reset action may include spawned field names, or the original and spawned fields may share a name. Check their names in Acrobat's Prepare a form tool and use distinct names for fields that must be reset independently.
Does resetForm clear fields or restore their defaults?
It restores the selected fields to their default values. To check a field's default, open its Properties in Prepare a form and review its options.
Can I reset all fields by leaving out the array?
Yes. Calling this.resetForm() resets the entire form, so pass an explicit array of original field names when spawned fields must remain unchanged.
Where do I add the reset script to a PDF button?
In Acrobat, open All tools > Prepare a form, open the button's Properties, and use the Actions tab to add or edit a Run a JavaScript action for the Mouse Up trigger.




