Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
Former Member
2 years ago1Password not filling Full Name in input field with autocomplete="name"
We have a field where we're asking for the user's Full Name. We're using the autocomplete="name" attribute on the field, as indicated by https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill, which is linked from https://developer.1password.com/docs/web/compatible-website-design/.
Using 1Password to auto-fill this field only inserts the last name, but it should insert the full name (e.g. first name and last name). First name and last name are both entered in my 1Password item as they should be.
Simplified test page: https://www.carverclimbingclub.org/temp/form-test.html
Video screen capture showing the issue: https://go.benish.io/NRJrNQN3
1Password Version: 8.10.3
Extension Version: 2.8.1
OS Version: 13.2.1
Browser:_ Chrome, Safari and Firefox
2 Replies
- Former Member
@steph.giles,
Thanks for digging in to this. Changing that to
id="name"did indeed fix it in our app. So I guess we're sorted… but, shouldn't 1Password use theautocompleteattribute for this, as per the spec? Especially when a validautocompleteattribute exists (I could see trying to useidas a fallback).Also, the code example on your https://developer.1password.com/docs/web/compatible-website-design/ includes that
…-fieldsyntax I was using for labels and IDs – that's where I got that from, in fact. So you might want to update that page to remove-fieldfrom https://go.benish.io/48wss0Dv, especially since it seems to break 1Password.Thanks for your help with this!
- steph_giles
1Password Team
Hey @benish,
I have done some testing and I found that when changing
id="name-field"toid="name"I was able to get both the first and last name to fill in the field.Can you give this a try and let me know how you get on?