The "Meta Box" way to disable Autocomplete & Autofill?

Support General The "Meta Box" way to disable Autocomplete & Autofill?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #16421
    brandonjpbrandonjp
    Participant

    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
    browser and google maps autofills competing in Chrome

    For address fields, adding autocomplete = new-password works most of the time:
    meta box custom attribute autocomplete new-password

    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

    #16433
    Anh TranAnh Tran
    Keymaster

    Hi,

    I see you already have solutions for that by adding autocomplete attribute for the fields, don't you? I think that's a good way to fix this issue on Chrome.

    #16440
    brandonjpbrandonjp
    Participant

    Is there a way inside MB Builder to add an attribute (like autocomplete="off") to the entire form ?

    #16458
    Anh TranAnh Tran
    Keymaster

    Unfortunately, it's not possible, since the form is not created by the plugin. The form is created by WP, so I think your solution here is the best one if you want to add autocomplete attribute to the entire form.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.