Mirror a Fillable PDF Field in Adobe Acrobat
Question details
Automatically copy the value of one fillable PDF text field into another, with optional formatting changes.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- A PDF form needs to display a name entered in one field in a second field, potentially in a different format.
- Observed behavior
- The second field should update when the user commits a value in the source field.
Open the PDF in Adobe Acrobat and confirm that you can edit its form fields. Identify the exact names of the source and destination text fields.
Copy the source value with an Acrobat validation script
Use this method when the destination field has a different name or needs its own formatting.
Open the PDF in Adobe Acrobat and select Prepare a form from the tools menu.
Select each text field and open its Properties to check its name. This example uses TEXT 1 as the source and TEXT 2 as the destination.
Open the Properties for TEXT 1, select the Validate tab, choose Run custom validation script, and click Edit. Enter: this.getField("TEXT 2").value = event.value; Replace TEXT 2 with the exact destination field name if needed.
Save the PDF, enter a value in TEXT 1, and press Tab or click outside the field to commit it. Confirm that TEXT 2 displays the value.

Use the same field name for identical values
Use this simpler option when both locations should display the same value without separate formatting.
Work with PDF Forms and Office Files in WPS Office
WPS Office is a free, lightweight alternative for everyday document and PDF work, with a familiar interface and compatibility that helps you move existing Office files. Use Adobe Acrobat to create and test the validation script described above; WPS is not a replacement for Acrobat's form JavaScript editor.

Frequently Asked Questions
When does the destination field update?
The validation script runs when the source field value is committed, such as when the user presses Tab or clicks another field.
Why is the second field not updating?
In Prepare a form, check that the destination name in this.getField("TEXT 2") exactly matches the field name. Also check that JavaScript is enabled in Acrobat's preferences and test the form in a viewer that supports Acrobat form JavaScript.
Can I remove a comma before copying the name?
Yes. In the source field's custom validation script, apply a JavaScript string method before assigning the value. For example: this.getField("TEXT 2").value = String(event.value).replace(",", ""); removes the first comma.
Can both fields have the same name instead of using a script?
Yes. In Prepare a form, give both text fields the same name to share a value. Use separate field names and a script if the second value needs different formatting.




