Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Simple javascript issue in html

Avatar

Level 2
Hi All,

I have a javascript code, which i written in the initialize event of a check box( This code works fine when view in pdf but not working in html)

-----------------------------------------------------

if( this.rawValue == 1 ){

this.resolveNode("level_A1").presence = "visible";

this.resolveNode("g_masterDevScope[1]").rawValue = 0;

this.resolveNode("level_A2").presence = "hidden";

}

else{

this.resolveNode("level_A1").presence = "hidden";

}

-----------------------------------------------------

this is giving following error message

Javascript error: TypeError: this.resolveNode("level_A1")has no properties



Any insights into this issue will be very helpful.



Thanks

JJ
1 Reply

Avatar

Former Community Member
Try putting the complete path to level_A1 inot the expression.



form1.page1.subform1.level_A1