multiple drop down auto populate diffrent field?
I am currently working on a project where I have 6 different dropdown lists all with the same information that would auto populate the corresponding field next to them.
I obviously am doing something wrong because I can not get each dropdown list and corresponding field to act on their own. What I end up with is being able to control only 1 at a time or all of them. If you look at my small sample code below maybe you can see what I am doing wrong. Any help would be greatly appreciated.
var DepData={"Code Blue Elevator":{contact: "Your Department Chief"},
"Lab":{conatact: "Your Department Chief"},
};
function SetFieldValues(cDeptName)
{
this.getField("DeptContact").value = DeptData[cDeptName].contact;
}
[Edited by Mod.: Code layout fixed]
