PDF Editing Issues

Mirror a Fillable PDF Field in Adobe Acrobat

Elise WilliamsElise Williams Nov 25, 2026 868 views

Question details

Automatically copy the value of one fillable PDF text field into another, with optional formatting changes.

Mirror a Fillable PDF Field in Adobe Acrobat
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the form editor

Open the PDF in Adobe Acrobat and select Prepare a form from the tools menu.

2
Check the field names

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.

3
Add the validation script

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.

4
Test the fields

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.

Copy the source value with an Acrobat validation script
Formatting and viewer support: Use JavaScript string methods in the validation script if the destination needs different formatting. Test the saved form in the intended PDF viewer, because not all viewers support Acrobat form JavaScript.
Free Microsoft Office alternative

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.

Open and fill PDF forms for everyday document workflowsWork with Microsoft Word, Excel, and PowerPoint formatsUse a familiar interface for a smoother transition from Microsoft OfficeAccess free, lightweight tools for common document tasks
microsoft office alternative - wps office

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.