Do any Meta Box users have a preferred solution for disabling browser autofill and autocomplete on forms?
Is there a "Meta Box" way of adding autocomplete = off
to the entire parent <form>
element? (Currently, I'm doing this with custom JS)
Adding a custom attribute to the individual input of autocomplete
with value off
or false
usually works for most general text inputs (but does not work for address fields).
It's most frustrating on address/geo/google-maps fields when the browser suggestions cover the Google Maps suggestions
For address fields, adding autocomplete = new-password
works most of the time:
There are so many mentions of this issue across the internet. This Stackoverflow ticket has a good variety of various situations: https://stackoverflow.com/questions/15738259/disabling-chrome-autofill