Max your JavaScript work properly but it broke another JavaScript I was using to showing hide fields with the same checkboxes. For example this is what I have in checkbox three and four.
(Checkbox 4)
var showHide = event.target.isBoxChecked(0)?display.visible:display.hidden;
this.getField("GROUP0").display = showHide;
if (event.target.value != "Off") {
this.getField("box1").value = "Off" ;
this.getField("box2").value = "Off" ;
this.getField("box3").value = "Off" ;
}
(Checkbox 3)
var showHide = event.target.isBoxChecked(0)?display.visible:display.hidden;
this.getField("GROUP3").display = showHide;
if (event.target.value != "Off") {
this.getField("box4").value = "Off" ;
}
The JavaScript that you put together worked correctly to uncheck the boxes but when the boxes unchecked group0 or any of the other groups did not go hidden the only way to make them hidden again is to check and uncheck the box manually. I have tried using event.target.isBoxChecked(Off) and that did not fix the issue. Max again your solution did give me an answer for my original question and I will market as the correct solution but it is opened up another question and I didn't want to start a whole new thread for it.