I have a form where sub forms have a check box in them. I need a script when the user clicks a button to hide all sub forms that don't have the check box checked. Thanks for any assistance you can provide.
var allChildElements;
var intNumElements;
var currentElement;
var i;
allChildElements = CRT130.nodes;
intNumElements = allChildElements.length;
for (i=0; i<intNumElements; i++)
{
currentElement = allChildElements.item(i);
if(currentElement.className === "checkbox")
{
if(currentElement.rawValue == 0)
{
currentElement.presence = "hidden";
}
}
}