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!
Copy link to clipboard
Copied
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.
}