How to populate two text fields based on a single drop down list selection


i'm trying set form 2 text fields populate default text (separate text in each  text field) @ same time.

 

below screenshot of fields.

 

so, example, if select utah drop down menu in "state," "oh fund center" auto-populate apwswr4949 , "oh wbs" auto-populate wr49.73.0003.

 

 

i have similar script text fields little bit lower in form, script not working.  trying following script:

 

var v1 = this.getfield("recstate").valueasstring;

if (v1=="utah") event.value = apwswr4949;

else event.value = "";

 

however, not auto-populate oh fund center box.  , have no idea how populate both fields @ same time.

 

any appreciated.

 

thank you!

 

crystal

strings needs placed between quotes. change code to:

 

var v1 = this.getfield("recstate").valueasstring; if (v1=="utah") event.value = "apwswr4949"; else event.value = ""; 

 

if works can use similar code other field.



More discussions in PDF Forms


adobe

Comments

Popular posts from this blog

Illustrator CS6 Ocurrío un error E/S en el archivo.

Why is os_ViewContainer running?

Animate - problem with duplicating scripts after loop