Yes

<cfparam name="form.checkone" default="1">
<cfparam name="form.checktwo" default="0">

<form name="myform" action="index.cfm" method="post">

<input type="checkbox" name="checkone" value="1"<cfif val(form.checkone)>
checked><br>

<input type="checkbox" name="checktwo" value="1"<cfif val(form.checktwo)>
checked><br>

<input type="submit" name="submit">
</form>

Unchecked checkboxes do not exist in the form scope. The cfparams make sure
they are there at all times.


-----Original Message-----
From: Tim Laureska [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 01, 2005 3:10 PM
To: CF-Talk
Subject: RE: retaining checkbox selections

Like <cfparam name="whatever" default=""> ?

-----Original Message-----
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 01, 2005 1:43 PM
To: CF-Talk
Subject: RE: retaining checkbox selections

Or just use cfparams for all the form fields at the top of each stepped
page

-----Original Message-----
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 01, 2005 1:23 PM
To: CF-Talk
Subject: RE: retaining checkbox selections

What I would suggest is to create a form object/structure mirror in a
persistent scope that has name/value pairs for the entire form.
Initialize
this data entity with empty values at the beginning of the process.
Then
always populate form fields from this data.  At the beginning it will be
null/empty values, but as the form is completed it will contain the
values
of the user.  Then no matter what the user does, the form will have
appropriate data.




--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 










~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217174
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to