Answered
ISdefined for the checkbox
I have a form with 12 check boxes name
sel1……sel12. I like to insert the once checked into a
table. I’m using the following method to check for the boxes
being defined.
<cfloop index="i" from="1" to="12">
<cfif isdefined(#form["sel" & i]#)>
Insert into table code here….
</cfif>
</cfloop>
In this case I have checked boxes with the name of sel1 and sel2, but not sel3 and that’s when I get this message.
Element sel3 is undefined in a Java object of type class coldfusion.filter.FormScope.
Thanks in advacne!
<cfloop index="i" from="1" to="12">
<cfif isdefined(#form["sel" & i]#)>
Insert into table code here….
</cfif>
</cfloop>
In this case I have checked boxes with the name of sel1 and sel2, but not sel3 and that’s when I get this message.
Element sel3 is undefined in a Java object of type class coldfusion.filter.FormScope.
Thanks in advacne!
