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

27

Likes

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
Most Valuable Participant ,
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.

}

Likes

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