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

SubForm's Loop and hiding based on checkbox

$
0
0

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";

  }

}

}

 

Heirarchy.png


Viewing all articles
Browse latest Browse all 5571

Trending Articles



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