<cfselect> with Required="Yes" not working
I have this cfselect:
<CFSELECT name="country" SIZE="1" REQUIRED="Yes" message = "Please select a country">
<OPTION value=" ">Choose a Country</OPTION>
<OPTION VALUE="AF">Afghanistan [AF]</OPTION>
<OPTION VALUE="AL">Albania [AL]</OPTION>
<OPTION VALUE="DZ">Algeria [DZ]</OPTION>
etc.
</CFSELECT>
However, according to CF8 manual on the Required parameter:
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).
|
I tried to "work around" with and without the SIZE but CF still will NOT detect that the user did not select a country. What is wrong? The screen displays Choose a Country and it will pass.
