I have this script that if the No radio button is clicked it filled in fields with N/A. If the user clicks the Yes radio button, the fields are left blank for the user to fill in. The script was working. Then I had to change the names of the Rows and fields in the table and now the script doesn't work. Any thoughts on how to troubleshoot this? Here's the script:
switch
(this.rawValue)
{
case '1': // Yes is bound as 1
form1.page5.Table1.Row1[0].offSiteQuest.rawValue
= "";
form1.page5.Table1.Row1[1].offSiteQuest.rawValue
= "";
form1.page5.Table1.Row1[2].offSiteQuest.rawValue
= "";
form1.page5.Table1.Row1[3].offSiteQuest.rawValue
= "";
form1.page5.Table1.Row1[4].offSiteQuest.rawValue
= "";
break;
case '0':
form1.page5.Table1.Row1[0].offSiteQuest.rawValue
= "N/A";
form1.page5.Table1.Row1[1].offSiteQuest.rawValue
= "N/A";
form1.page5.Table1.Row1[2].offSiteQuest.rawValue
= "N/A";
form1.page5.Table1.Row1[3].offSiteQuest.rawValue
= "N/A";
form1.page5.Table1.Row1[4].offSiteQuest.rawValue
= "N/A";
break;
}
Thanks,
Margaret Dawn
Solved! Go to Solution.
Views
Replies
Total Likes
Just sent you an updated version ....I used section 6 ....your issue was in using [] in a javascript expression. That notion signifies an array notation to javascript, so you must wrap the expression in an xfa.resolveNode("string that represents the expression").....or change over to formcalc where the [] are allowed.
Paul
Views
Replies
Total Likes
Can't do much without seeing the form ....can you post it to LiveCycle8@gmail.com?
paul
Views
Replies
Total Likes
Just sent. Thanks.
Margaret Dawn
Supervisor - Documentation
W: 630-850-1065
Views
Replies
Total Likes
There is an example of the issue in Section 2: Off-site Sales
Margaret Dawn
Supervisor - Documentation
W: 630-850-1065
Views
Replies
Total Likes
Just sent you an updated version ....I used section 6 ....your issue was in using [] in a javascript expression. That notion signifies an array notation to javascript, so you must wrap the expression in an xfa.resolveNode("string that represents the expression").....or change over to formcalc where the [] are allowed.
Paul
Views
Replies
Total Likes
Thank you.
Margaret Dawn
Supervisor - Documentation
W: 630-850-1065
Views
Replies
Total Likes
Yeah. It works and I learned something new.
Thanks,
Margaret Dawn
Supervisor - Documentation
W: 630-850-1065
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies