Skip to Content
0
Former Member
Jan 22, 2016 at 01:32 PM

Accessing the context variables in adobe forms

6336 Views

Hi Guys,

I need a simple advice, Here is my scenario, I have a variable GV_XYZ part of my context in adobe forms. And in Page1-SUBFORM1 (Path)

i am trying to access it without binding it to any element.

So I am using the following javascript.

if ($.gv_xyz.rawValue == "X")

{

this.presence = "hidden";

}

end of the day the purpose is to hide the subform, which works perfectly if i dont have the if statement. It is a simple problem but can not figure out what is that i am doing wrong here?

also tried this.

var gv_abc;

gv_abc = xfa.record.gv_xyz.rawValue;

if(gv_abc == "X ")

{

this.presence = "hidden";

}

still no luck.

Appreciate any help.

Best Regards,

Tapo.