> 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
______________________________________________________________________
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to