cancel
Showing results for 
Search instead for 
Did you mean: 

javascript for accessing a field of the data view?

Former Member
0 Kudos

hi all,

suppose i have a field "mode" in the context of my form but i do not display this field on the layout..depending on the value of this field at runtime i will hide a subform...

so i will write a sript on the subform...

lang:javascript run at: server and event:initialize....

say if (mode = 2)

subform.presence = "hidden"

please provide the script for the condition in javascript..

please give the full script so that it works because i have no idea about syntax errors...

please help.....

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

any solution..??

i am stuck at this point...

Former Member
0 Kudos

Hi,

Try accessing the value using mode.rawValue or mode.value. Try to give the variable name completely as defined in the hierarchy.

Former Member
0 Kudos

hi,

actually i want to know the complete reference syntax for mode will it be xfa.record.etc..

plis give me the refernce syntax..i can help you with the hierarchy of mode in the data view...

its is inside a folder main..

so we will write main.mode i is clear tome ..but before that what should i write?

will it be xfa.record.main.mode or what?