Disable it.  It will be grayed out, but still be visibly 'checked'.  Just be
aware that the field value will not be submitted by the form.  You can deal
with that by using <cfparam> in the form's action template, or else by
adding a hidden field.

<cfinput type="Checkbox" name="select" checked="Yes" disabled>
<cfinput type="hidden" name="select" value="whatever">

Jim


----- Original Message -----
From: "phumes1" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, February 06, 2002 6:18 AM
Subject: Re: Checkbox


> Hi,
>
> How can I stop a user from "unchecking" the box below?
>
> <cfinput type="Checkbox" name="select" checked="Yes" required="Yes">
______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to