Custom Fields
Re-Envisioned
Support General The "Meta Box" way to disable Autocomplete & Autofill?

This topic contains 3 replies, has 2 voices, and was last updated by  Anh Tran 1 week ago.

  • Creator
    Topic
  • #16421

    brandonjp
    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #16433

    Anh 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

    brandonjp
    Participant

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

    #16458

    Anh 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 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.