I'm trying to disable the frontend HTML5 validation for a filed in a form built in Symfony.
In Twig, i use this code:
{{ form_widget(form.email, {'attr': {'class': 'form-control input-lg','novalidate': 'novalidate}}) }}
but the field is still considered as required. What am I doing wrong?
You can set that in your form type to disable the field validation.
If you want to disable it for the whole field you can try something like this: