go through several checkboxes if all checked than check one checkbox
Hello,
I do not have much experience in Java, please help me.
I want to write such a command -> only if all checkboxes are checked then this checkbox "cb0" should be automaticaly checked.
What is false in my code?
var 1=getField("cb1").value;
var 2=getField("cb2").value;
var 3=getField("cb3").value;
for (i = 1; i < 3; i++){
if(event.target.value=="Yes"){
getField("cb0").checkThisBox(0,true);
}
else if(event.target.value!=="Yes"){
getField("cb0").checkThisBox(0,false);
}
}
