Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Linking drop-down list box to new text field

Avatar

Level 1

I am new at creating forms using Adobe. I created a drop-down list with "Locations" and I would like the address to each location to populate automatically when the user makes a selection in a text field below. I've read some of the entries posted previously on this topic but I am not fully understanding how to modify my scrip to make this happen. I need help ASAP!!! Thanks.

2 Replies

Avatar

Level 6

Here is the JS example for you to consider.......this goes to change event of the DropDown

if (xfa.event.change== "location1") {

     xfa.form.form1.subform1.textField.rawValue = "1234 Street Name, City Name, ST ZipCode";

}

if (xfa.event.change== "location2") {

     xfa.form.form1.subform1.textField.rawValue = "1235 Street Name, City Name, ST ZipCode";

}

//add as many as you have

if (xfa.event.change== "Please Select") { //default

     xfa.form.form1.subform1.textField.rawValue = "";

}

Avatar

Level 1

Thanks for the reply. I tried the script and I keep getting an error message reading "xfa not defined". The company is using an old version of Adobe (Adobe Acrobat 5). Don't know if it has something to do with it, or I'm just not making the changes correctly when modifying the script.