Ive only ever used that method when posting a form to a processing page & 
having the page throw one of my server-side validation routine errors. When 
an error is encountered I include the original form below my validation 
routines, on the validating page.

To preserve what the user already entered, instead of the values defaulting 
back to normal. When a checkbox is present I use that same checkbox method 
with one exception. Heres the code I use to check to see if the checkbox wuz 
checked or not:

<CFIF IsDefined("Form.CheckboxName")>
<CFSET Checked="TRUE">
<CFELSE>
<CFSET Checked="FALSE">
</CFIF>

Then I can check the checkbox on the original form page or not depending on 
if the user checked it before the error occured when posting the form. You 
have the rest of my code that I use to do this in my last post.

HTH,
Mike


>From: "ibtoad" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: Really Dumb question help??
>Date: Sat, 02 Dec 2000 17:38:06 -0500
>
>Ok maybe I have been staring at tis screen to long but how do I set a
>checkbox to unchecked using a Cfset tag?
><cfset checkbox="?">
>
>If I use <cfset checkbox=""> it comes back checked.
>
>Thanks,
>Rich
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to