4 Replies Latest reply on Sep 17, 2008 2:14 PM by Dan Bracuk

    Checking dynamically named checkboxes.

    BrettCPI
      I have a form with checkbox fields "Check1", "Check2", "Check3, etc. After submit, I want to loop through to find which are checked. Something like:

      cfloop index="1" from="1" to="4"

      cfif parameterexists (check#i#)
      do stuff
      /cfif

      /cfloop

      Except CF isn't happy with this.
      (Yes, I know parameterexists has been deprecated. That's not the problem.)

      Do you do this with "evaluate"? What is the right cfif command? Help would be appreciated!

      thanks!
      B.