Expand my Community achievements bar.

Simple JS works in Acrobat 7, but not 8 - why?

Avatar

Level 2
I have a simple form with 2 fields: "myname" and "phone". "myname" is a drop down list populated with 3 names. I want to be able to populate the "phone" field with a phone number corresponding to the "myname" field automatically.



I have the following JS attached to the calculate event of the myname field. This works perfect in Acrobat 7.0.9, but does not work at all in Acrobat 8.0 professional or Adobe Reader 8. Does anyone know why?



switch (myname.rawValue){

case "Beth Voigt" :

phone.rawValue = "431-3833";

break;

case "Bobbie Hartfiel" :

phone.rawValue = "431-2019";

break;

case "Dave Brown" :

phone.rawValue = "431-2448";

break;

default : phone.rawValue = "";

}



event.newText = myname.rawValue;
0 Replies