Autofill does not work for username fields with number type

For years, I have experienced issues with autofilling the username on some websites. The extension will only fill in the password, and I have to manually enter the username or copy and paste it. A few months ago, I found a commonality among these websites: the username field has the type “number” in the HTML code.

Is there any way to fix this? Are there any workarounds you can suggest? Should I report it as a bug somewhere else?

Note: For some reason, this issue only occurs on desktop (any browser), but on my iPad, the username autofills just fine.

@autusgo Welcome to the forum!

Could you provide one (or two) domains where you encounter this problem as an example, so that someone could check what’s going on there?

Just in case, here already the links if you want to report it in the end:

Report autofill issues (mobile apps): https://forms.gle/NcZ2BmLfKH9txCzz8

Report autofill issues (other clients): https://forms.gle/yYVQkepxxLKZ3kR6A

@autusgo Welcome!

I believe that this is a known issue, but I don’t know whether there are any plans to fix it (i.e., it may be intentional behavior for username fields to only work for text input fields).

I’ll have to do some tests to confirm (so it would help if you can provide some example URLs), but I believe I previously found a (not very convenient) work-around, which may have involved setting up your login credentials as custom fields in a different type of vault item (e.g., a Card or Identity item) that supports autofilling of number fields. Unfortunately, unless I come up with something more clever, you would not get the benefit of URI match detection if you set up your credentials that way.

Thank you for the links.
I’m leaving two example URLs where ir happens:
https://profeweb.frlp.utn.edu.ar/
https://www.dasintranet.com/sigiba/i12/adm/
I’m mentioning @grb, who also asked for examples.

I said that this does not replicate on iPad, but I just realize it is just using Safari, although Safari for desktop shows the same behavior.

Thank you both!

I was able to autofill using the method I had suggested:

 

There would be many different ways to set this up, but in the example above, I chose to create an Identity item, and stored the username and password values in the “Social Security Number” and “Password Number”, respectively:

I then created two custom fields of the Linked type, and linked them to the “Social Security Number” and “Password Number”. The corresponding custom field names (user and password) were selected to match the names of the username and password input field elements on the website:

The same approach works on the second example URL that you provided, if you make the name of the first linked custom field usuario:

 

If these are logins that you use frequently, then there are also some work-arounds that could be used to make it easier to initiate the autofill action (to make up for the loss of URI matching). Please let me know if you would like additional assistance to optimize your configuration.

Thank you @grb, I’ll try that out, I use those sites once or twice a week, but manually enter the numbers seems easier hehe.
Do you know if there’s a reason username autofill does not work with numbers? I understand it’s probably a bad coding decision to set the type filed as number, but I guess is not that uncommon and it would nice if it just works.

Thank you for the tutorial!

Your decision, but the setup I described only has to be done once.

Adding a custom field is not that difficult, just Edit the item, and click + Add field. In the “Add Field” pop-up, change the “Field Type” dropdown value to “Linked”, type the required field name in the “Field Label” field, and click Add:

To find the required field name to put as the field label, you can try right-clicking the field on the login form, and selecting Bitwarden > Copy custom field name, then pasting into the “Field Label” box in the “Add Field” dialog. If this doesn’t work as it should, then we can help if you provide a URL for a login form that you want to set up.

After you have added the linked custom field, you also need to select which of the item fields it should be linked to, which you do by clicking :arrow_down_small: arrow, and selecting the field where you have stored the username or password:

 

When you are done with the setup of the custom fields, don’t forget to click Save.