0

I am trying to get the password hint from the password change field, I already tried to disable the auto complete with the code

autocomplete="new-password" // or autocomplete="off"

but this does not work, does anyone have an idea how to solve this problem?

Edit:

My problem is when I try to change the password, my password change screen, auto completion puts the old password as a new password, all standard means have been discarded, apparently google does not care what you want.

Change password image

Lucas
  • 275
  • 8
  • 37

3 Answers3

1

You can use the onFocus event to the password field.

<input type="password" onfocus="this.value=''" ... />
sdn404
  • 614
  • 5
  • 7
1

One suggested solution is to use autocomplete="new-password" and if that does not work for you, then you may try autocomplete="false". Do note that autocomplete="false" does not adhere to the official standards but is a known workaround.

Adam Chubbuck
  • 1,612
  • 10
  • 27
1

You can try adding autocomplete="off" to your form and autocomplete="none" to your inputs like it's mentioned in this answer

Pietro Nadalini
  • 1,722
  • 3
  • 13
  • 32