How to Duplicate a PDF Field Value Without Linking Editability
Question details
The user needs to display the same form field value in a different location within a PDF, allowing the second field to be read-only without modifying the original field's editability.

- Product
- PDF Editor
- Device & OS
- not provided
- Scenario
- Creating or managing an interactive PDF form where user input from one text field must automatically populate a secondary field that should remain uneditable.
- Observed behavior
- Standard copy-pasting of a PDF field links their properties, meaning if one is set to read-only, the other also becomes read-only. The goal is to separate their properties while mirroring the input value.
Ensure you are using a PDF editor that supports advanced form creation and custom JavaScript calculations, such as WPS Office PDF Editor.
Use a Custom Calculation Script for the Read-Only Field
Assign different names to the form fields and use a simple JavaScript calculation to mirror the value while maintaining independent field properties.
By giving the fields unique names, they no longer act as linked clones. You can then apply a custom calculation script on the destination field to automatically fetch the value from the source field without inheriting its editable status.
Open your PDF form in edit mode. Ensure your source field (e.g., 'FirstName') and destination field (e.g., 'FirstName_Copy') have distinct, different names.
Right-click the destination field and open its Properties. Go to the General tab and check the 'Read Only' box so users cannot manually type into it.
In the Properties window of the destination field, navigate to the Calculate tab. Select the option for 'Custom calculation script' and click the 'Edit' button.
Type the following script: event.value = this.getField("FirstName").value; (Be sure to replace "FirstName" with the exact name of your source field). Click OK and close the properties window.

Create and Manage Smart PDF Forms with WPS Office
WPS Office provides a comprehensive PDF toolkit that allows you to design interactive forms, manage field properties independently, and handle advanced form logic with ease.
- 1. Open your PDF in WPS Office: Launch WPS Office and open the PDF document you want to turn into an interactive form.
- 2. Access the Form tab: Navigate to the 'Form' tab on the top ribbon to reveal all interactive form creation tools.
- 3. Add and configure fields: Insert text fields where needed. Double-click any field to access its properties, assign unique names, and configure read-only or calculation rules.
- 4. Save your interactive PDF: Once your fields and scripts are configured, save the document. Your smart interactive form is ready for distribution.

Frequently Asked Questions
Why does changing one PDF field to read-only affect my duplicate field?
If you duplicate a field by simply copying and pasting it without changing its name, PDF editors treat them as linked clones. Any property change or value entered in one will automatically apply to all fields sharing that exact same name.
Do I need to know programming to use calculation scripts in PDFs?
Not extensively. Simple tasks like mirroring a value only require a basic one-line script: event.value = this.getField("YourFieldName").value;. You just need to replace 'YourFieldName' with the actual name of your source field.
Will this JavaScript calculation work on mobile PDF readers?
Support for JavaScript in PDFs varies heavily by mobile application. While desktop applications like WPS Office and Adobe Acrobat fully support form calculations, basic mobile PDF viewers or built-in browser viewers might not execute the script.
How do I make a field read-only only after a user signs the document?
You can configure digital signature fields to lock specific form fields, or the entire document, once the signature is applied. This is configured through the signature field properties under the 'Signed' tab.




