Quantcast
Channel: ASPRunner forums
Viewing all articles
Browse latest Browse all 2586

[SOLVED] Probelm with getValue() in JS OnLoad event

$
0
0
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 ctrl.getValue() with an alert:

alert(ctrl.getValue);


Which resulted in the following:

Posted Image

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

Viewing all articles
Browse latest Browse all 2586

Trending Articles