I have a Symfony2 form that has required fields, which works fine in most browsers as the "required" attribute is on the inputs and so the user is unable to submit the form without filling in the field.
However, for the browsers that don't support the "required" attribute the form is submitted. This is causing a problem because when the form's isValid() function is called it returns true even though the required fields are empty.
Is this normal behaviour? I would assume there would be some server side checking of required fields during the form's handleRequest function but it doesn't seem to have any. If not is there a way to enable this?
Symfony\Component\Validator\Constraints\NotBlank