I am having an issue with a combo box on an Adobe form that after selecting the item and moving to another field the value changes to the top item in the combo box. the code is:
var contarr = new Array() ;
contarr[0] = ["Superintendent", "Super Phone"];
contarr[1] = ["Rene Zaragoza", "(916) 343-0086"]
contarr[2] = ["John Ruhga", "(916) 343-0012"]
contarr[3] = ["Dustin Miller", "(916) 343-0058"]
contarr[4] = ["Mike Sampang", "(775) 745-0156"]
var names = [];
for (var i = 0; i < contarr.length; i++) {
names.push(contarr[i][0]);
}
function onContactSwitch(name) {
for (var i = 0; i < contarr.length; i++) {
if (contarr[i][0] == name) {
selectContact(i);
break;
}
}
}
function selectContact(i) {
this.getField("Super Phone").value = contarr[i][1];
}
This code is in the Mouse UP trigger
thanks for your help!
Views
Replies
Total Likes
Toby,
Can you please share the sample form via some shared drive?
Views
Replies
Total Likes
Hi Toby,
Can you please share the sample form.
Views
Replies
Total Likes
I can try to. Give me a min
Sent from my iPhone
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies