server side validation on cfselect does not work

Discussion in 'Programming' started by meanrat, Jun 7, 2010.

  1. #1
    Dear people

    I am very new to Coldfusion, but am almost convinced that there are several bugs with validation on de cfselect tag. Now, I am aware of the bug that when adding an empty value (<option value="">Choose country</option>) then Coldfusion will not see this as an error when that value is selected.

    But there's something else. Client Side validation is totally unsafe, for javascript can be disabled very easily. I come from PHP and I almost never have used client side validation. So now I wanted to use server side validation on this cfselect tag. It did not work, it kept using the client side version.

    
    <cfselect validateat="onserver" required="yes"...>
    
    Code (markup):
    Is there a workaround, like there is for the client side bug?
    Or am I doing something wrong?

    Thanks!
    Maarten
     
    meanrat, Jun 7, 2010 IP