4

I have this input field which shows me a list of google address suggestions:

<input type="text" id="customerAddress" name="customerAddress" placeholder="Adresse (Vorschlag übernehmen)" autocomplete="off">

I would like to prevent the autocomplete / autofill function of any browser. For this I tried "autocomplete=off", but it doesn't work. The autofill wasn't disabled:

enter image description here

What can I do ?

Trombone0904
  • 4,132
  • 8
  • 51
  • 104

1 Answers1

1

You will find an explanation here (after the code blocks).

You can either try to change the name attribute of your fields or set the autocomplete attribute to "off" on the form tag instead.

Tom
  • 4,972
  • 3
  • 10
  • 28
  • 2
    i tried this before. but without success – Trombone0904 Dec 01 '21 at 16:56
  • @Ghost108 You can take a look at [this answer](https://stackoverflow.com/a/30976223/16688813). – Tom Dec 01 '21 at 17:44
  • I had this problems only with edge and chrome. I tried `autocomplete=off`, `autocomplete=new-password` and `autocomplete=chrome-off`. Nothing works ! :( – Trombone0904 Dec 02 '21 at 07:04
  • @Ghost108 if it didn't work and not either `
    ` or changing the `name` attribute of your `input`, I'm affraid I have no other solution.
    – Tom Dec 02 '21 at 08:41