How does Chrome identify address fields in my form for autofill?

1,465 views
Skip to first unread message

Vismar Fernández Santana

unread,
May 18, 2019, 5:32:47 PM5/18/19
to Chromium-dev
Hi guys:
               I am not a developer for Chrome, but a web developer. I am having a small issue in one of my sites.
 I have a form which contains First Name, Middle Name, Last Name and Designation. For some reason, just in Chrome, whenever the cursor get to that field, the browser suggests Address values (State in this case).
I works perfect for Name fields or Address fields, however I do not know why is it Chrome "thinking" my Designation field is expecting an address.

Is there a way I can prevent this? 

This is the HTLM behind my field:

<input type="text" id="31e41b3b-ec40-46b4-b609-b13a50fcc9b7" name="31e41b3b-ec40-46b4-b609-b13a50fcc9b7" data-field="ind__ind_designation" class="form-control" data-type="nvarchar" maxlength="50" value="">

Thank you

chromeissue.png


chromeissue.png

Mike Dougherty

unread,
May 18, 2019, 9:50:51 PM5/18/19
to kevi...@gmail.com, Chromium-dev
I don't know how Chrome handles it exactly, but you could try adding additional metadata with the "autocomplete" attribute.


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/ba293bd3-3e6d-47d1-814c-67f90421499d%40chromium.org.
Reply all
Reply to author
Forward
0 new messages