1

I recently updated Chrome to the latest version (I am running Version 79.0.3945.88 for MacOS) and suddenly Chrome has started suggesting autofilling credit card numbers in fields which are not credit card fields. For example, I have this field:

<label class="control-label required" for="fuel_order_outbound_number">Numero Vuelo</label>
<input type="number" id="fuel_order_outbound_number" name="fuel_order[outbound][number]"
required="required" min="0" max="9999" class="flight-number form-control">

and Chrome is suggesting to autofill with credit card info, see the image:

enter image description here

Has anyone else noticed this? What can we do to stop Chrome trying to autofill these fields?

UPDATE: I just noticed that this only happens in the Spanish version of our site, not the English version, so it may not be related to the latest Chrome version after all. The only difference in the HTML is the label of the field which changes from "Flight number" to "Numero vuelo", so it seems that Chrome stupidly assumes that if a form field is labelled "Numero" (Number) it is a credit card field (big facepalm)

Carlos Granados
  • 11,273
  • 1
  • 38
  • 44
  • I am facing exactly the same issue. How did you solve this? Numero is also a number in Finnish language. It seems that if the label contains `numero` the field becomes autosuggestable. – rnli Jan 29 '21 at 15:35
  • @mli we just set autocomplete=false in those fields – Carlos Granados Feb 07 '21 at 07:15

1 Answers1

0

I would assume that Chrome has detected something in your input name that it might think is to do with card payments. Changing the name should resolve the issue

You could also set autocomplete=false for the field to prevent the autofill from displaying.

ButchMonkey
  • 1,873
  • 18
  • 30