0

Does anyone know of a way to achieve this in 2022?

The old autocomplete="off" approach doesn't work, and assigning a non-typical name / id is an inadequate workaround.

Does anyone have a solution for this?

LWSChad
  • 331
  • 3
  • 14
  • 1
    I have an old trick that I use .. I am not sure if it still works, but: `autocomplete="iasnsdijsdn"` The random characters seem to "trick" Chrome into not remembering .. – Zak Sep 16 '22 at 21:39
  • Wow! That worked - in Edge. Untested past that. Post as an answer, and I'll mark it correct. – LWSChad Sep 16 '22 at 21:41
  • @Zak am just curious, would that also trick other browsers ? Especially the non-chrominium ones like `Firefox`. – ThS Sep 16 '22 at 21:42
  • @ths it used to on any Chromium based browsers .. Yes .. I am not sure about Safari and FF though .. – Zak Sep 16 '22 at 21:43
  • @Zak am talking about the other ones, non-chrominium ? Do you confirm it works there too ? – ThS Sep 16 '22 at 21:44
  • $ths OP has confirmed Chrome and Edge. – Zak Sep 16 '22 at 21:44

1 Answers1

3

A work around that I've been using for years is

autocomplete="iasnsdijsdn"

For some reason the random string tricks Chrome into forgetting the field.

Zak
  • 6,976
  • 2
  • 26
  • 48
  • This disables "autofill" (when the field is simply focused), but not "autocomplete" (once 3 characters show up, autocomplete is back) – LWSChad Sep 16 '22 at 21:43