Thanks for that suggestion, Bobby.
I'm still missing something, and I think I've taken a step back. The following
code only gives me one checked checkbox when first editing the form and no
checked checkboxes during the error checking:
<cfloop query="getCheckboxes">
<cfset local.currentCheckboxID = getCheckboxes.checkboxID />
<input name="checkboxList" type="checkbox" value="#getCheckboxes.checkboxID#"
<cfloop query="queryUser">
<cfparam name="form.checkboxList" default="#queryUser.checkboxID#" />
<cfif local.currentCheckboxID EQ form.checkboxList>
checked
</cfif>
</cfloop>
>
</cfloop>
Something is eluding me. Any other help?
Cameron
>Use the same loop to declare cfparams for your form fields using the query
>results as the default""
>
>Then in all of your form fields, use the form scope for the values
>
>When the user first hits the form, the query populates the form scope. When
>the user submits, THEIR information overrides the cfparams and stays in the
>form scope
>
>Works every time :-)
>(not to mention... it will get rid of all those <cfif> statements ;-)
>
>.:.:.:.:.:.:.:.:.:.:.:.:.
>Bobby Hartsfield
>http://acoderslife.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231648
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54