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:
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 ctrl.getValue() with an alert:
Which resulted in the following:
![Posted Image]()
Obviously not what I was expecting. Did I do something wrong?
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 ctrl.getValue() with an alert:
alert(ctrl.getValue);
Which resulted in the following:

Obviously not what I was expecting. Did I do something wrong?