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

field to be automatically filled up when drop down menu changes

New Here ,
Mar 06, 2021 Mar 06, 2021

Copy link to clipboard

Copied

I need help, I have a pdf form that has drop down menu, and depending on the selected option, multiple field should be updated

example:

drop down menu: A,B,C,D

 

if A is selected

field 1 = 123

field 2 = 345

field 3 = 678

field 4 = 000

 

if B is selected

field 1= 222

field 2= 333

and so on....

 

this is just a sample, i need the syntax code for this

 

thanks!

TOPICS
PDF forms

Views

129

Translate

Translate

Report

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 ,
Mar 07, 2021 Mar 07, 2021

Copy link to clipboard

Copied

LATEST

As the custom Validation script of the drop-down you can use something like this:

 

if (event.value=="A") {

this.getField("field 1").value = "123";

this.getField("field 2").value = "345";

this.getField("field 3").value = "678";

this.getField("field 4").value = "000";

} else if (event.value=="B") {

// etc.

}

Votes

Translate

Translate

Report

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