1

I have on web application with login page, username and password field has attribute autocomplete "off" also tried nope, new-password etc. still its not working in chrome version 62+. and its autocomplete suggestion list reflect on last control of every web page in entire solution
see below image each control look like this. Please help me to resolve this issue..

enter image description here

  • have you saved username and password in browser? From setting you need to remove saved username and password then I guess the autocomplete will not come. – ganesh phirke Mar 04 '19 at 04:33

2 Answers2

1

Looking at the docs:

A user agent may allow the user to override an element's autofill field name, e.g. to change it from "off" to "on" to allow values to be remembered and prefilled despite the page author's objections, or to always "off", never remembering values.

So, I think you have enabled autocomplete="on" in first page and disabling autocomplete="off" later wouldn't help you. It will always be on once you have enabled it.

Also, autocomplete="new-password" support for this value has not been implemented on Firefox.


You may also disable the whole form.

<form autocomplete="off">

If nothing is working for you, this should do the trick:

<form autocomplete="false | unknown-autocomplete-value">

The unknown-autocomplete-value is not known by the browser and will prevent auto fill.

Bhojendra Rauniyar
  • 83,432
  • 35
  • 168
  • 231
0

This is a normal behaviour on most of the modern browsers, so the most popular modern browsers will ignore autocomplete="off" on login fields.

If a site sets autocomplete="off" for username and password fields, then the browser will still offer to remember this login, and if the user agrees, the browser will autofill those fields the next time the user visits the page.

See The autocomplete attribute and login fields

Also see comments on each browser on https://caniuse.com/#search=autocomplete

Some workaround had already been discussed on Disabling Chrome Autofill

caiovisk
  • 3,667
  • 1
  • 12
  • 18