PDF Editing Issues

Copy Multiple PDF Form Fields to Another Row in Adobe Acrobat

Muhammad TalhaMuhammad Talha Nov 18, 2026 868 views

Question details

Copy values from multiple PDF form fields in one row to corresponding fields in another row.

Copy Multiple PDF Form Fields to Another Row in Adobe Acrobat
Product
Adobe Acrobat
Device & OS
not provided
Scenario
A user wants values entered in one row of a PDF form to populate matching fields in the next row.
Observed behavior
The destination fields should receive the source values when the chosen form action runs.
Before you start

Open the form in a version of Adobe Acrobat that can edit PDF forms, and use Prepare a Form to identify the exact source and destination field names. Decide which source field users will complete last so its blur action can trigger the copy.

Solution 1Recommended

Copy the row with an on-blur JavaScript action in Acrobat

Use a field action to copy several text-field values after the user leaves the last source field.

The example copies three pairs of text fields. Replace every sample name with the exact name shown in the form editor. The action runs each time the selected source field loses focus, so it can overwrite existing destination values.

1
Open the form editor

Open the PDF in Adobe Acrobat and select All tools > Prepare a form. Check the names of the source and destination fields.

2
Open the trigger field

Double-click the source field that users are expected to complete last, then open its Actions tab.

3
Add the JavaScript action

Under Select Trigger, choose On Blur. Under Select Action, choose Run a JavaScript, then select Add.

4
Enter the field mappings

In the JavaScript editor, enter the following script and replace the example names with your field names: var pairs = [["Row1_A", "Row2_A"], ["Row1_B", "Row2_B"], ["Row1_C", "Row2_C"]]; for (var i = 0; i < pairs.length; i++) { var source = this.getField(pairs[i][0]); var destination = this.getField(pairs[i][1]); if (source && destination) destination.value = source.value; } Select OK and close the field properties.

5
Test the copy

Save the PDF, exit form editing, and enter values in the source row. Move focus out of the trigger field and check that the corresponding destination fields are populated.

Copy the row with an on-blur JavaScript action in Acrobat
Choose the trigger carefully: If users leave the trigger field before completing the row, the script may copy incomplete values. Re-entering and leaving that field runs the action again. Calculations or other actions on destination fields may also affect their values.
Free Microsoft Office alternative

Work with PDFs and Office files in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for working with PDFs and Office documents. Its format compatibility makes it easier to move existing files into your workflow. Acrobat-specific form JavaScript should be created and tested in Acrobat; support for form actions can vary between PDF applications.

Open and work with PDF documents alongside other office filesCompatible with Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTXUse a familiar interface for everyday document tasksMove existing Office files into a lightweight, free workspace
microsoft office alternative - wps office

Frequently Asked Questions

Where can I find the PDF form field names?

In Adobe Acrobat, open All tools > Prepare a form and inspect the fields in the form editor. Use their exact names in the JavaScript mappings.

When does an On Blur action run?

It runs when the selected field loses focus, such as when the user clicks or tabs into another field. Attach it to a field users are expected to complete after the other source fields.

Will the script overwrite values already in the destination row?

Yes. Each time the action runs, it assigns the current source values to the mapped destination fields, replacing their existing values.

Why did a destination field remain empty?

Check the source and destination names in Prepare a form, then make sure the source field has a value and that you moved focus out of the trigger field. The example skips a pair if either named field cannot be found.

Can I use a calculation script instead of an On Blur action?

Yes. A custom calculation script can populate a destination field, but you must choose the field and calculation timing carefully and reference the correct source field names.