Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autofill populating wrong fields

Tags:

forms

autofill

I have a site with a checkout page that has always worked beautifully.
Recently, any customer that uses autofill to fill out his info, gets his email address dumped into the company field. There are no changes that we did that could affect that. What other tools can I use to get to the bottom of this?

like image 712
Haim Avatar asked Dec 23 '15 20:12

Haim


People also ask

How do I correct autofill on my computer?

You can choose to enable/disable the autofill feature through Settings > Passwords & autofill. Management of the autofill data can be independently done for passwords, forms and cards by simply clicking on Manage passwords, Manage forms and so on.

How do I change autofill form data?

Click on the three dots at the top right corner. Go to Settings and look for the Autofill section. Click on the item (Passwords, Payment methods, Addresses and more) for which you want to disable Autofill. Toggle the Auto Sign-in setting off for each item separately.

Why autofill is not working?

If you cannot run autofill on your tablet then maybe you have used the PC to save the information in the first place. And your devices are yet to synchronize the data. Or you might not have enabled the sync feature. Therefore, it is a good idea to check the sync settings on the chrome app to see if that is the case.


2 Answers

The OP's problem may have been solved (or may have come back again in recent updates!) but as of early 2019, you can diagnose some of these problems by setting the show-autofill-type-predictions flag in chrome://flags, restarting Chrome, then looking at the title (tooltip text) for the input in question. It will tell you what information is being used to guess the "type" of field, and what kind of saved data should be used to populate it.

like image 178
Coderer Avatar answered Oct 20 '22 00:10

Coderer


We still don't know what caused the issue, but for anyone seeing this we ended up making the field readonly so that auto-fill doesn't fill it. We then wrote some JS that on focus, it becomes active and the user can manually fill it in.

<input type="text" name="company" readonly="" onfocus="this.removeAttribute('readonly');">

like image 42
Haim Avatar answered Oct 19 '22 23:10

Haim