HTML Form Autocomplete and Autofill

Disable HTML Form Input Autocomplete and Autofill

I have wondered when designing a form and testing in google chrome browser that HTML Form Autocomplete and Autofill is not working with autocomplete=off

form action=”” autocomplete=”off” method=”post”

input style=”display: none;” autocomplete=”off” name=”hidden” type=”text”
input style=”display: none;” autocomplete=”off” name=”hidden” type=”password”

On some browsers like chrome, this is autocomplete=”off” is no more working, i don’t know why but this is true…

We have tried following but nothing worked!

      • autocomplete=”off”
      • autocomplete=”false”
      • autocomplete=”disable”

Finally we have got the solution with “new-password”

 

form action=”” autocomplete=”off” method=”post”

input style=”display: none;” autocomplete=”off” name=”hidden” type=”text”
input style=”display: none;” autocomplete=”off” name=”hidden” type=“new-password”