I have an Employee dropdown list field that pulls from the "employee" table and it works fine. On the add page in my onload event I have the following code to auto file the the employee field when "proj" is checked. It works when I do not choose a dropdown field list but I can't get it to work when I do use one. Is this even possible or am I wasting my time trying to make it work. Here is the working jscript onload event code .
______________________________________________________
var proj = Runner.getControl(pageid,'Project');
var empl = Runner.getControl(pageid,'EmployeeID');
//Projects
function projfunc() {
if (proj.getValue()=='on')
{
empl.setValue("Projects");
}
}
//End Projects
proj.on('Change',projfunc);
_______________________________________
______________________________________________________
var proj = Runner.getControl(pageid,'Project');
var empl = Runner.getControl(pageid,'EmployeeID');
//Projects
function projfunc() {
if (proj.getValue()=='on')
{
empl.setValue("Projects");
}
}
//End Projects
proj.on('Change',projfunc);
_______________________________________