Copy Multiple PDF Form Fields to Another Row in Adobe Acrobat
Question details
Copy values from multiple PDF form fields in one row to corresponding fields in another row.

- 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.
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.
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.
Open the PDF in Adobe Acrobat and select All tools > Prepare a form. Check the names of the source and destination fields.
Double-click the source field that users are expected to complete last, then open its Actions tab.
Under Select Trigger, choose On Blur. Under Select Action, choose Run a JavaScript, then select Add.
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.
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.

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.

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.




