I use a hidden form field and then display   Wingdings chr(254) which is a
checked checkbox. This keeps the coding simple yet visually it is easy for
the user to understand that it is not optional.

----- Original Message -----
From: "Dave Watts" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, February 06, 2002 7:41 AM
Subject: RE: Checkbox


> > How can I stop a user from "unchecking" the box below?
> >
> > <cfinput type="Checkbox" name="select" checked="Yes" required="Yes">
>
> Many people have already suggested using JavaScript, or ignoring the form
> field value in the action page.
>
> A better question, though, is why would you present a checkbox if you
don't
> want the user to be able to uncheck it? In the best case, it's going to be
> confusing to people, who, when they see a checkbox, expect to be able to
> uncheck it. I'd recommend not using the checkbox at all - it's not the
> appropriate interface for what you're trying to do - maybe an alert box,
> with it's single "OK" button, is more what you're looking for.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> voice: (202) 797-5496
> fax: (202) 797-5444
> 
______________________________________________________________________
Why Share?
  Dedicated Win 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=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to