9 Replies Latest reply: Feb 2, 2014 9:46 AM by BSisson RSS

    How do I build a field based on Checkboxes?

    BSisson Community Member

      I am VERY new to Javascript...but I think I can do what I want, just not sure of the syntax...

       

      I have a very large form with lots of checkboxes.

       

      I want to build (fill) some text responses based on those checkboxes.

       

      Assuming I have checkboxes 1 -3  (checkbox.1 - checkbox.3)

      In each checkbox the export value is a something like "This is the text associated with checkbox  #1"

       

      On the last page there is a text Box called "Summary" (summary.1)

       

      On my LAST page, I want to have a button with a MOUSE-UP script that takes the Export values in checkboxes 1 -3 and puts them into the Textfield "summary"

       

      This SHOULD be easy right?

       

      Eventually, if everything else works, I want to build a for-next loop that will cycle through LOTS of checkboxes and build a multi-line Summary, and maybe even Sort it -BUT- only do that when the "build" button is pressed, otherwise the form would always be thrashing....

       

      This assumes that a non-checked box exportvalue = NUL