Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Is there a way to auto populate a text field

New Here ,
Nov 22, 2018 Nov 22, 2018

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

TOPICS
PDF forms
5.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Nov 23, 2018 Nov 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.
}

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 23, 2018 Nov 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.
}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 27, 2018 Nov 27, 2018
LATEST

Thank You, worked perfectly.

D

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines