I used this in twig :
{{ form_start(form, { 'attr': {'autocomplete': 'off'} }) }}
and this in the controller action :
'attr'=>array('autocomplete' => 'off'
But the autocomplete still not disabled!!!!
UPDATE:
If you are using symfony 4 the proper way is using off
'attr'=>['autocomplete' => 'off']
You can use :'attr' => ['autocomplete' => 'disabled']
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With