Expand my Community achievements bar.

Help in syntax pls.?

Avatar

Level 8

Hello

For some reason, i am using a variable in place of a FIELD, while doing of referring a text field expression syntax, working fine, the syntax is as below shown in (1)*

var myVariable

myVariable = myTextField

(1)* xfa.resolveNode("VISITOR.Page3.SubFrom1." + myVariable + "").access = "readOnly";

Now,

I want to use a vatriable in place(in stead) of COMPLETE text field expression syntax , pls. let me know its syntax(i tries with the below syntax, its not working), as shown in (1)* the above syntax

xfa.resolveNode(myVariable).access = "readOnly";

Thank you

1 Reply

Avatar

Level 5

Hi,

Your syntax is correct the problem is that It doesn't look like you have change the variable to be the entire path, so for the code

the myVariable would have to be set to be

myVariable = "VISITOR.Page3.SubFrom1.myTextField";

Hope this helps

Malcolm