>>When processing this form I need to check for the existence of any of the
check boxes.

Yeah, this is really a design problem in HTML, the name of an unchecked 
checkbox is not passed
by the browser in the HTTP protocol.
IMHO some default value would pretty useful, ie:
<INPUT NAME="myCheckBox" TYPE="checkbox" VALUE=1 DEFAULT=0>

Personnaly, I've developped my own workaround this way:
1. every form calls a function onSubmit that creates a list 
(defaultList) of all checkbox and select INPUTs
    in a hidden field. Note that it is done by Javascript, but the 
hidden field could be generated by CF as well.

2. each action template includes a template that verifies every item in 
that defaultList and set its value to 0
if the item is not found in the form scope.
Pretty simple (if you always use 0 as default value) :

<CFIF isDefined ("form.defaultList")>
  <CFLOOP INDEX="checkBox" LIST="#form.defaultList#">
  <CFPARAM NAME="form.#checkBox#" DEFAULT="0">
  </CFLOOP>
</CFIF>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313350
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to