How to Create Unique Names for Duplicated PDF Form Buttons
Question details
The user needs to duplicate a group of interactive form buttons in a PDF without having all copied groups change simultaneously.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Duplicating interactive form controls, such as traffic-light buttons, across a PDF document.
- Observed behavior
- When form controls are copied, all duplicated groups act as one and change at the same time because they share the same field name.
Ensure you have access to your PDF editor's form preparation tools and any JavaScript code associated with your interactive buttons.
Assign Unique Field Names and Update JavaScript
Rename each duplicated form button and update its associated JavaScript to ensure independent behavior.
In PDF forms, fields that share the exact same name are treated as linked. Interacting with one will automatically trigger the same behavior in all copies. To make duplicated interactive buttons work independently, they must have distinct names and any custom JavaScript must be updated to target those new names.
Open your PDF document and enter the 'Prepare Form' mode from the tools menu to view all form fields.
Right-click the duplicated form button and select 'Properties'. In the General tab, change the 'Name' field to a unique identifier (e.g., change TrafficLight001 to TrafficLight002).
Navigate to the Actions tab within the Properties window, or open your document-level JavaScript. Modify the script so it targets your newly created unique field name instead of the original one.
Exit the form editing mode and click on the newly duplicated buttons to verify that they function independently without affecting the original group.

Create and Manage PDF Forms with WPS Office
WPS PDF provides a comprehensive and user-friendly set of tools for creating, editing, and managing interactive PDF forms. Easily add custom text fields, checkboxes, and interactive buttons with unique properties to ensure your documents function exactly as intended.
- 1. Open PDF in WPS Office: Launch WPS Office and open your PDF document.
- 2. Access Form Tools: Navigate to the 'Form' tab in the top ribbon to access the interactive form editing tools.
- 3. Insert Form Controls: Select 'Push Button', 'Check Box', or 'Text Field', and click on the document to place the new field.
- 4. Customize Properties: Double-click the newly created form field to open its properties, where you can assign a unique name and define its behavior.

Frequently Asked Questions
Why do my duplicated PDF form fields fill with the same data?
When you duplicate a form field in a PDF, the copy retains the exact same field name as the original. PDF readers treat fields with identical names as linked, so data entered or actions performed on one will automatically replicate on the others. You must assign unique names to each field to prevent this.
How do I edit JavaScript in a PDF form field?
In your PDF editor's form preparation mode, right-click the form field, go to Properties, and select the Actions tab. From there, choose 'Run a JavaScript' as the action and click 'Add' or 'Edit' to modify the underlying code.
Can I copy multiple form fields at once and give them unique names automatically?
Standard copy-pasting will retain the original names. However, some advanced PDF tools offer a 'Create Multiple Copies' feature that allows you to specify a grid of fields. The software will automatically append sequential numbers (e.g., Field.0, Field.1) to ensure they are unique.




