it also says This workaround applies only for Flash forms and not for HTML forms or XML forms.
are you using a flash form ? On Tue, Dec 13, 2011 at 5:00 PM, Robert Harrison <[email protected]> wrote: > > According to the CF documentation you can make a select list required and you > can get around the need to set the size gt 1 by entering " " as the value of > the first option. > > This is the documentation: > > REQUIRED... 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). > > This is the code: > > <cfselect name="dob_mm" style="width: 100px;" class="#color3#" > required="yes" message="Please enter your date of birth"> > <option value=" ">Month</option> > <option value="1">January</option> > <option value="2">February</option> > <option value="3">March</option> > <option value="zzz">More</option> > </cfselect> > > > What am I doing wrong? I just want to get the message when the users selects > the "Month" option. > > Thanks > > Robert B. Harrison > Director of Interactive Services > Austin & Williams > 125 Kennedy Drive, Suite 100 > Hauppauge NY 11788 > P : 631.231.6600 Ext. 119 > F : 631.434.7022 > http://www.austin-williams.com > > Great advertising can't be either/or. It must be &. > > Plug in to our blog: A&W Unplugged > http://www.austin-williams.com/unplugged > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:349082 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

