2

I have a webpage taking a new user name & password as input. For scripting, I am using AngularJS.

<div class="form-group">
 <input ng-model="prc.userName" placeholder="User Name" type="text" class="form-control" autocomplete="nope" required autofocus />
</div>

This input box always gets auto-filled, I don't want it to get auto-filled.

Question reviewed prior: How do you disable browser Autocomplete on web form field / input tag?

// These attributes do not work
autocomplete="off"
autocomplete="false"

My chrome version: Version 73.0.3683.103 (Official Build) (64-bit)

How can I do that?

Lalji Tadhani
  • 12,597
  • 2
  • 19
  • 36
Prashant
  • 3,934
  • 4
  • 30
  • 65

2 Answers2

2

Yes this is a known error and it can be really annoying. for some reason autocomplete='false' and autocomplete='off' aren't working at all in chrome.

The only known method to get rid of it is to use autocomplete='new-password', this will deactivate the autocomplete!

Cheers

Dat Boi Trump
  • 407
  • 2
  • 10
1

Add autocomplete="off" onto (form) element;

Add hidden (input) with autocomplete="false" as a first children element of the form.