There is the great functionality of using html5 validation in symfony2 forms.
After searching a while in the internet, I found this great solution:
But this gives me allways only one validation-message
Would you please enter a valid email?
What about multiple validation-messages? Like it is described in the docs:
So I'm able to use either html5 form-validation with one message, or I'm able to use normal validations (like in the link) with multiple messages, but no client-side validation like html5 (Of course, I could implement some validation functions, but I'd prefer to use the built-in html5 functionality)
Edit: I did some research, It looks like this html5 form-validation has nothing to do with the symfony2 framework, is that correct? So basically without creating too much client-side code, I'm only able to make check for "required" (which is the original reason of this attribute).