How to Duplicate PDF Form Pages with Unique Field Names
Question details
The user needs to duplicate a fillable PDF page multiple times without the form fields sharing the same names and automatically synchronizing data.

- Product
- PDF Editor
- Device & OS
- not provided
- Scenario
- Creating a multi-page PDF document from a single form template where each newly created page requires independent data entry.
- Observed behavior
- When duplicating pages using standard methods, the copied fields retain their original names, causing any text typed on one page to automatically populate the identical fields on all other duplicated pages.
Ensure you have a professional PDF editor with JavaScript execution capabilities, such as Adobe Acrobat Pro, and verify that your master page's form fields are properly configured before running any scripts.
Use Acrobat JavaScript and Template Spawning
Convert the master form page into a template and use a JavaScript snippet to spawn new pages with uniquely prefixed form fields.
By utilizing the Template.spawn method in Adobe Acrobat, you can automatically generate copies of a page while instructing the software to rename the fields. This process prefixes each newly generated field with a unique identifier linked to the spawned page.
Open your PDF, navigate to 'Tools' > 'Prepare Form' > 'More' (or options menu), and select 'Page Templates'. Name your template (e.g., 'MasterPage') and click 'Add'.
Press 'Ctrl + J' on Windows or 'Cmd + J' on Mac to open the Acrobat JavaScript Debugger console.
In the console, type the following code: this.getTemplate("MasterPage").spawn({nPage: this.numPages, bRename: true, bOverlay: false}); and press 'Ctrl + Enter' to execute.
Execute the script for as many duplicate pages as you need. The 'bRename: true' parameter ensures each spawned page gets entirely independent field names.

Manually Rename Duplicated Fields
If you are unable to use scripting, you can duplicate the page via standard tools and manually alter the field properties.
Use a Third-Party Automation Script
Install a custom-made Acrobat add-on script to handle page duplication and field renaming automatically.
Easily Manage and Edit PDF Forms with WPS Office
WPS Office provides a comprehensive and intuitive PDF toolset that allows you to effortlessly duplicate pages, insert interactive form fields, and modify properties to ensure your data is collected correctly without synchronization errors.
- 1. Open Your PDF: Launch WPS Office and open your multi-page PDF document containing the form.
- 2. Navigate to Form Tools: Click on the 'Form' tab in the top navigation ribbon to access the interactive form creation and editing tools.
- 3. Select Form Fields: Add new form fields or click on existing fields on your newly duplicated pages.
- 4. Assign Unique Names: Double-click the selected field to open its properties, type a distinct name, and save to keep the field's data independent.

Frequently Asked Questions
Why does data typed in one PDF form field automatically appear in another?
This occurs when multiple form fields share the exact same field name in their properties. Standard PDF readers treat identically named fields as the same variable, so updating one updates all copies simultaneously. You must give each field a unique name to prevent this.
Can I stop PDF form fields from copying data without using JavaScript?
Yes. However, you will need to manually open the properties menu for every single duplicated form field and rename it to something unique. Using JavaScript or automation scripts simply bypasses this highly tedious manual process.
Does the JavaScript template spawning trick work in all PDF readers?
No. The actual spawning script must be executed within an application that supports advanced Adobe JavaScript (like Acrobat Pro) during the document creation phase. Once the pages are generated and the unique fields are permanently established, the resulting PDF can be filled out safely in any standard PDF reader.




