Is it possible to use field.show() and field.hide() in a global script.
The current error is "field.hide() is not a function".
I need to enter the following function in an event in 12 fields on 5
forms. It seems like there should be a way to use a global script.

function WorkStation(field)
{
var ws = Number(field.substring(2));
var c = Number(myWF.form.getValue('count'));
var ws = Number(ws);
var cnt = Number(c);

if (cnt >= ws){
field.show();
field.setReqired(true);

}else{
field.hide();
field.setRequired(false);
}
}


--
ptown
------------------------------------------------------------------------
ptown's Profile: https://forums.netiq.com/member.php?userid=418
View this thread: https://forums.netiq.com/showthread.php?t=55538