2 Replies Latest reply on Oct 15, 2013 12:48 PM by Trevor Valenton

    How to check to see if any Checkboxes within a subform are checked

    Trevor Valenton

      Hi everyone, I'm sure there is a way (possibly through JavaScript) to figure out if any checkboxes in a subform are checked but I can't seem to figure it out.  I'll work on uploading my form so that it will be easier to see what I'm talking about but in the mean time here is a brief explanation of how the form is setup:

       

      my form's hierarchy is as follows:

       

      Form1

           -(Master Pages)

           -TaxRegBusInfo

                -SubForm2

                     -Checkbox1 (it will show/hide the following subform based on if it's checked or not)

                          -Q2SubForm1

                               -CheckboxA

                               -CheckboxB

                               -CheckboxC

                               etc (totaling out to about 50 checkboxes)

       

      LiveCycle Problem.PNG

       

      Basically what I'm trying to figure out is how to write some code (I'm guessing a function?) that I can use so that when someone goes through the form and selects any of the checkboxes (A,B,C, etc.) in any order or combination, a text box say something like "items checked."

       

      I've looked into the "resolveNodes" and "instanceManager" functions as well as the Adobe LiveCycle help but I've only just started to dabble in JavaScript so I can't quite seem to figure out how to use them properly.  Any help or links to beginner friendly documentation would be much appreciated!