I want to hide the text field named "Honors" if it is equal to the value "<None>".
I took the following code straight out of manual and placed it in the JS onload event:
var ctrl = Runner.getControl(pageid, "Honors");
if(ctrl.getValue() == "<None>")
{
pageObj.hideField("Honors");
}
It did not work. If I just left the hideField line in with no condition, it did hide the field. So I tested the value of [size="2"]ctrl.getValue() with an alert:[/size]
alert(ctrl.getValue);
Which resulted in the following:
[size="2"]

[/size]
[size="2"]Obviously not what I was expecting. Did I do something wrong? [/size]