How to Use Shared and Unique Fields in PDF Page Templates
Question details
The user wants to generate new PDF pages from templates where specific fields, such as headers, share the same values across all pages, while other form fields remain unique and independent.

- Product
- PDF Editor
- Device & OS
- not provided
- Scenario
- Creating standardized, multi-page PDF forms where header information auto-populates identically on each page, but the main form controls hold different data per page.
- Observed behavior
- Standard template spawning either renames all fields making them completely independent, or keeps all fields shared, preventing the user from mixing shared and unique data behaviors automatically.
Ensure you are using an advanced PDF editor that supports page spawning, template configurations, and JavaScript parameters. Clearly map out which specific fields need to be duplicated and which should maintain unique entries.
Use Separate Templates with the bOverlay Parameter
Split your form design into two distinct templates—one for unique fields and one for shared header fields—and spawn them sequentially over the same page.
Spawning a template can create a completely new page, but it can also be used to place fields directly over an existing page. By utilizing the bOverlay script parameter, you can layer a secondary template on top of a newly created page without overwriting its core structure.
Design your main PDF page template containing all the fields that need to be unique for every generated page. Leave blank space for your shared headers.
Create a second, separate template page that contains only the header fields you wish to share across all spawned pages.
Use your spawning script to generate a new page from the primary template, ensuring the rename parameter is set to true so these fields remain unique.
Execute a script to spawn the header template directly over the newly created page. Use the 'bOverlay' parameter and ensure the rename parameter is set to false. This allows the newly layered header fields to retain their original names and share values globally.

Synchronize Field Values Using JavaScript
Spawn the entire page with unique fields, but use custom calculation scripts to pull shared values from master fields.
Create and Manage PDF Forms Easily with WPS Office
WPS Office provides robust and user-friendly PDF form editing capabilities. You can easily insert text fields, manage their properties to link or unlink shared data, and streamline your entire document creation process without needing complex code.
- 1. Open PDF in WPS Office: Launch WPS Office and open your PDF document. Navigate to the 'Form' tab in the top ribbon.
- 2. Insert Form Fields: Click on 'Text Field', 'Check Box', or other form controls and draw them onto your document.
- 3. Configure Shared Field Names: Double-click a form field to open its Properties. To make a field shared (like a header), ensure its 'Name' matches the target field identically across all pages.
- 4. Configure Unique Field Names: For fields that require independent data on each page, assign a completely unique 'Name' in the Properties panel. Save your document to preserve the interactive template.

Frequently Asked Questions
Why do multiple PDF form fields automatically type the same text?
When two or more form fields in a PDF document are assigned the exact same field name in their properties, they act as cloned fields. Entering text into one will automatically duplicate the data into all other fields sharing that specific name.
How do I prevent form fields from duplicating data across pages?
To prevent data duplication, you must ensure that each form control has a unique identity. Right-click the affected field, select Properties, and change its Name to something entirely distinct from the others.
Can I use page spawning in free PDF viewing software?
Page spawning and JavaScript-based template overlays are advanced features that typically require premium PDF authoring tools. Standard or free PDF viewers (like basic reader modes) usually cannot execute these specific form generation scripts.




