Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

forms: trap a Combo Box selection change

Status
Not open for further replies.

msc0tt

IS-IT--Management
Jun 25, 2002
281
CA
I am trying to trap when a Combo Box selection has been changed. After a change, some Javascript is supposed to update another field on my PDF form. I've tried to assign my script to a "Mouse Up" action. I've also tried the Validate Script option. No joy. My script is basically this:

var e = this.getField("cboEmployer");
var d = this.getField("txtDivision");
if (e.value == "AAS") {
d.value = "4";
}
if (e.value == "ATI") {
d.value = "7";
}
if (e.value == "SCI") {
d.value = "3";
}

This is my first attempt to add "smarts" to a PDF form. Anything obvious that I'm missing??
-with thanks,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top