Reset Fields and Visibility on Spawned Pages in Adobe Acrobat
Question details
The user wants to reset form fields and manage visibility when spawning pages from PDF templates in Acrobat.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Creating additional form pages from a hidden page template while keeping fields independent and managing visible content.
- Observed behavior
- Spawned fields may need to be reset manually, and PDF layers are flattened rather than copied as separate layers.
Open the PDF in Acrobat and identify the page template name and the fields you want to reset. Check the template's field default values, because resetting a field restores its default rather than necessarily making it blank.
Spawn a Hidden Template and Reset Its Page Fields
Use a hidden template with renamed fields to create independent form pages, then reset fields on the spawned page if needed.
Set bRename to true when spawning the template so the new page's fields receive unique names. An already spawned first form page can also help avoid field-name conflicts.
The following example appends a page and resets fields found on that page. It restores their configured defaults, not necessarily empty values.
In Acrobat, open the PDF's page template controls, create a template from the form page, give it a name such as FormTemplate, and hide the template page.
In Prepare a Form, add or edit a button. Under Properties > Actions, choose Run a JavaScript and add the script in the next step. Replace FormTemplate with your template's actual name.
Use this script to append the template and reset fields on the new page: var pageIndex = this.numPages; var template = this.getTemplate("FormTemplate"); if (template) { template.spawn({nPage: pageIndex, bRename: true, bOverlay: false}); var names = []; for (var i = 0; i < this.numFields; i++) { var name = this.getNthFieldName(i); var field = this.getField(name); if (!field) continue; var pages = field.page; if (typeof pages === "number") pages = [pages]; if (!pages) continue; for (var j = 0; j < pages.length; j++) { if (pages[j] === pageIndex) { names.push(name); break; } } } if (names.length) this.resetForm(names); }
Click the button to spawn a page, enter values, and test again. Confirm that the new page's fields have the expected defaults and do not share values with fields on other pages.

Overlay a Template or Remove Unneeded Spawned Pages
Use an overlay or extra pages when a design relies on content that cannot remain in separate layers after spawning.
Work with PDF Forms and Office Files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with PDFs and Office documents. Its format compatibility makes moving existing files straightforward, although it does not fix Acrobat template-spawning behavior.

Frequently Asked Questions
Why do spawned form fields share values with other fields?
Fields with the same name can share a value. Set bRename to true in the template's spawn call to give spawned fields unique names.
Does resetting a PDF form field always clear it?
No. Acrobat's resetForm method restores the field's configured default value. Check the field's properties in Prepare a Form if you need the default to be blank.
Can Acrobat preserve PDF layers when spawning a page?
No. Layers are flattened during spawning, so they cannot be copied as independently controllable layers. You can overlay another template using bOverlay, but that does not restore the layers.
Can I spawn a template over an existing PDF page?
Yes. In the template's JavaScript spawn call, set bOverlay to true and specify the zero-based target page with nPage.
Can Acrobat Reader delete pages from a form?
Reader can delete spawned pages under supported conditions, but it cannot delete regular pages. Test the form's page controls in Reader before distributing it.




