Forum Discussion

Former Member's avatar
Former Member
2 years ago

1Password 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's avatar
    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 the autocomplete attribute for this, as per the spec? Especially when a valid autocomplete attribute exists (I could see trying to use id as a fallback).

    Also, the code example on your https://developer.1password.com/docs/web/compatible-website-design/ includes that …-field syntax 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 -field from https://go.benish.io/48wss0Dv, especially since it seems to break 1Password.

    Thanks for your help with this!

  • Hey @benish,

    I have done some testing and I found that when changing id="name-field" to id="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?