Hi,
I need to disable field2 (dropdown box)on the add page subjetc to a value of a field1 - also on the add page, else it stays enabled.
In the onlad event I have placed the following code below:
I can enable/disable fields no problem, when when I get a value the below fails to work?
I would appreciate if someone could point me in the right direction......maybe its the sytax?
(field1 is an INT)
Thanks in advance.
var ctrlField1 = Runner.getControl(pageid, 'field1');
var ctrlField2 = Runner.getControl(pageid, 'field2');
if (ctrlField1.getValue()=='1')
{
ctrlField2.setEnabled();
}
else
{
ctrlOntimedepot.setDisabled();
}