Skip to main content
Participant
November 23, 2018
Answered

Is there a way to auto populate a text field

  • November 23, 2018
  • 1 reply
  • 5267 views

Is there a way to auto populate contents in a text field based on a previous text field in acrobat dc pro.

I have created a form that has several text fields that contain the same information, but may have slight variations in what is needed.

if text 1 has a company name in it, the next form may have the same name in it or it may have a registered business name in it. and I would like it to auto populate with the text 1 info, but allow me to change it if need be with only affecting the second or the third etc. 

Thank you

D

This topic has been closed for replies.
Correct answer try67

You can use the validation event of "text 1" to populate the other fields.

The basic code for that will be:

if (event.value) {

    this.getField("text 2").value = event.value;

    this.getField("text 3").value = event.value; // etc.
}

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
November 23, 2018

You can use the validation event of "text 1" to populate the other fields.

The basic code for that will be:

if (event.value) {

    this.getField("text 2").value = event.value;

    this.getField("text 3").value = event.value; // etc.
}

Participant
November 27, 2018

Thank You, worked perfectly.

D