I have three offices which has three different addresses, phone numbers, fax numbers, etc. At this time on my new form users have to choose a drop down box for each for the address, zip, fax, city state, etc. Is there a way for me to have one drop down box to choose office A, office B, or office C & if they choose Office B the address, zip, city, state, etc will automatically populate in the correct fields & if they choose Office A the same thing will happen?
Solved! Go to Solution.
Views
Replies
Total Likes
You have to be mindful of case sensitivity when referencing objects. You have Page1 and Subform1 while the assignment expressions were looking for
'form1.page1.subform1".
Steve
Views
Replies
Total Likes
Yes. Something like this on the exit event of the drop-down works...
// form1.page1.subform1.office::exit - (JavaScript, client)
var office = this.rawValue;
switch (office) {
case "123":
form1.page1.subform1.street.rawValue = "345 Park Avenue";
form1.page1.subform1.city.rawValue = "San Jose";
form1.page1.subform1.state.rawValue = "CA";
form1.page1.subform1.zip.rawValue = "95110";
break;
case "456":
form1.page1.subform1.street.rawValue = "601 Townsend Street";
form1.page1.subform1.city.rawValue = "San Francisco";
form1.page1.subform1.state.rawValue = "CA";
form1.page1.subform1.zip.rawValue = "94103";
break;
default:
break;
}
Steve
Views
Replies
Total Likes
It still is not working on my form....how can I upload my form so you can look at the code?
Views
Replies
Total Likes
Send the form to stwalker.adobe@gmail.com.
Steve
Views
Replies
Total Likes
Thanks, I just sent it to the email address. It is attached as 2222222.pdf
Views
Replies
Total Likes
You have to be mindful of case sensitivity when referencing objects. You have Page1 and Subform1 while the assignment expressions were looking for
'form1.page1.subform1".
Steve
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies