According to the new CFDOCS for CFMX8, the REQUIRED attribute should  
work:

Note: This attribute has no effect if you omit the size attribute or  
set it to 1, because the browser always submits the displayed item.  
You can work around this issue: format forms by having an initial  
option tag with value=" " (notice the space character between the  
quotation marks).

        • yes: a list element must be selected when the form is submitted.
        • no

However, I cannot get the message to appear using the following code...

<cfselect  name="state" required="yes" message="EMPLOYEE INFO:  A  
state is required!" multiple="no" query="getStates" value="Stateabbr"  
display="listing" queryPosition="below" SELECTED="#GetReport.state#">
              <option value=" ">Choose one</option>
           </cfselect>

Anybody have any suggestions?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294969
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to