The issue is that the idea is to force a selection, ie: an entry that has a
value. Most of us use a "blank" option to start with as you show.
Unfortunately the cfselect produced javascript does not properly handle this
issue.  In a single select box something is always selected.

Dave

----- Original Message -----
From: "Semrau, Steven L Mr SRA" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, April 06, 2001 09:38
Subject: RE: cfselect required='yes' is useless....


> <cfselect name="fiscalyr" size="1" query="queryname" message="Your Are
> Required to Enter A Fiscal Year" required="Yes">
> <option value="" selected></option>
> </cfselect>
>
> I use the above example all the time for the scenario you described below.
>
> Steven Semrau
> SRA International, Inc.
> Senior Member, Professional Staff
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> Com:  (703) 805-1095
> DSN:  (703) 655-1095
>
>
> -----Original Message-----
> From: Jeremy Castonguay [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 06, 2001 9:23 AM
> To: CF-Talk
> Subject: cfselect required='yes' is useless....
>
>
> <cfselect>
>
> What were they thinking.  Pardon me if I am just being ignorant but the
> "Required='yes'" attribute is completely useless.  When the query values
are
> inserted there is no way to default the select box to null, therefore
there
> is no way to "not" select a value...
>
> Any thoughts would be appreciated.
>
> Thanks
> Jeremy Castonguay
> Sr. Web Developer
> eCopy Inc.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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