Answered
Count Total Number of Check Boxes
How do I get a total number of check boxes?
They are named:
Check Box 1.0 - 1.9
Check Box 2.0 - 2.9
Check Box 3.0 - 3.9
Check Box 4.0 - 4.9
Check Box 5.0 - 5.9
How do I get a total number of check boxes?
They are named:
Check Box 1.0 - 1.9
Check Box 2.0 - 2.9
Check Box 3.0 - 3.9
Check Box 4.0 - 4.9
Check Box 5.0 - 5.9
In that case you can use this code as the custom calculation script of the field where you want to show the result:
var total = 0;
for (var i=1; i<=5; i++) {
var fields = this.getField("Check Box "+i).getArray();
for (var j in fields) {
if (fields[j].valueAsString!="Off") total++;
}
}
event.value = total;Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.