Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to disable chrome autofill option for angular form fields

Tags:

I have tried using autocomplete false and also auto complete off. The cache is removed from the field, but iam still seeing chrome autofill data. Is there a way to disable chrome autofill option in angular forms? Any suggestions would be appreciated. Thanks

like image 857
Shaik Nizamuddin Avatar asked Sep 02 '18 16:09

Shaik Nizamuddin


People also ask

How do I turn off autofill in forms?

This can be done in a <form> for a complete form or for specific <input> elements: Add autocomplete="off" onto the <form> element to disable autocomplete for the entire form. Add autocomplete="off" for a specific <input> element of the form.

How do I get rid of field suggestions in Chrome?

To get rid of unwanted autofill suggestions in Chrome, highlight the suggestion you want to clear by hovering your mouse over it, then press the "shift" and "delete" keys at the same time.


1 Answers

Please check the autocomplete="new-password":

<input type="password" name="password" value=""  autocomplete="new-password" />

It worked for me. Found in Google documentation

like image 70
Panos Avatar answered Oct 02 '22 19:10

Panos