CFSELECT, required not validating.

2011-07-26 Thread Pete Ruckelshaus

I'm using cfselect for a required field.  The problem I'm having is that
it's not validating.  This is in a cfform with an html type.  Here's my
code:

cfselect name=recipient_id message=You must select an email recipient.
queryposition=below query=getStaffEmails value=id
display=fulldisplay selected=#session.contact.recipient_id#
visible=Yes enabled=Yes required=Yes style=width: 305px;
 option value= Select Recipient/option
/cfselect

Any idea of what I'm doing wrong?

Thanks

Pete


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346343
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFSELECT, required not validating.

2011-07-26 Thread Russ Michaels

I vaguely remember an issue with older version of CF where some attributes
clashed whenused together causing the required not to work.
.
try removing visible=Yes enabled=Yes

as these are the defaults anyway.

Russ

On Tue, Jul 26, 2011 at 3:50 PM, Pete Ruckelshaus pruckelsh...@gmail.comwrote:


 I'm using cfselect for a required field.  The problem I'm having is that
 it's not validating.  This is in a cfform with an html type.  Here's my
 code:

 cfselect name=recipient_id message=You must select an email recipient.
 queryposition=below query=getStaffEmails value=id
 display=fulldisplay selected=#session.contact.recipient_id#
 visible=Yes enabled=Yes required=Yes style=width: 305px;
  option value= Select Recipient/option
 /cfselect

 Any idea of what I'm doing wrong?

 Thanks

 Pete


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346345
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm