as per cfml documentation, to make <cfselect>a required field you have to set the value of the default option (the pre-selected option which user has to change) to a signe space string " "
<option value=" " <CFIF get04.CountryCode IS ''>selected</cfif>>Please select</option> Azadi On 30/11/2010 12:23 , Rick Colman wrote: > I want to force the user to select a country code when submitting a form. > > The select box looks like: > > <cfselect name="countrycode" required="Yes" size="5" message="Please > select a country code."> > <option value=""<CFIF get04.CountryCode IS ''>selected</cfif>>Please > select</option> > <option value="AU"<CFIF get04.CountryCode IS 'AU'>selected</cfif> > >Australia</option> > > etc. > > I do not want them to be able to select the "value=""" option. > > How to do this? > > Rick. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:339617 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

