Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

For Loop Break

$
0
0

Hello,

 

How can I break the for loop if all the checkboxes (A,B,C) from all the rows (Row1[*]) are unchecked?

 

The below code is in the click event of a button and it shows the message box for all the number of rows and is not working the way I want.

 

Thanks.

 

var nods = xfa.resolveNodes("pctA.A.Row1[*].Q");
for (var i = 0; i < nods.length; i++)

if (nods.item(i).A.rawValue == "0" && nods.item(i).B.rawValue == "0" && nods.item(i).C.rawValue == "0")
{     xfa.host.messageBox("Warning1!\n\nWarning2", "WTitle", 0, 0);
}
else

{//continue with code}

Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>