the code below works if I take out the if this raw value section and turns on the check boxes and opens access but it won't else. I am just learning javascripting on the fly and am very unsure as to whether this is an else, if else, or whatever
on click I want it to show all "rows", and "Hide" chkboxes, then open "" access
when if this raw value statement is in I get the following message.
[0]:EditTables[0]:click
SyntaxError: missing } in compound statement
17:XFA:form1[0]:Main[0]:T2[0]:Edit[0]:EditTables[0]:click
SyntaxError: syntax error
4:XFA:form1[0]:Main[0]:T2[0]:Edit[0]:EditTables[0]:click
if (this.rawValue == "1")
{
//// take out the above and it only does the first part of the code.
var rowCount = 14; //change this number to number of rows in table
for(var i=1 ; i<rowCount ; i++)}
{
if (xfa.resolveNode("form1.Main.T2.T1.QA.Q.r" + i +""))//.presence = " ")//wprks with or without
{
xfa.resolveNode("form1.Main.T2.T1.QA.Q.r" + i +"").presence = "visible";
xfa.resolveNode("form1.Main.T2.T1.QA.Q.r" + i + ".c1.Hide").presence = "visible";
xfa.resolveNode("form1.Main.T2.T1.QA.Q.r" + i + ".c2").access = "";
}
else //// won't do the following the way it is written
{
xfa.resolveNode("form1.Main.T2.T1.QA.Q.r" + i + ".c1.Hide").presence = "hidden";
xfa.resolveNode("form1.Main.T2.T1.QA.Q.r" + i + ".c2").access = "readOnly";
}
}