your code does not correspond to the suggestions for REQUIRED attrib to work given in the docs. 1) your SELECTED option is a different one than the one with single-space value 2) your option with single-space value is positioned BELOW the output of the query driving your cfselect = it will never be a default selected option even if no other options are selected
--- Azadi Saryev Sabai-dee.com http://www.sabai-dee.com Philip Hayes wrote: > 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:294980 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4