Support the "autocomplete" HTML attribute for custom fields

Feature name:

  • Supporting the “autocomplete” HTML attribute for custom fields

Feature function:

BitWarden provides custom fields. According to the documentation on custom fields, BitWarden will look at the following HTML attributes in order to determine which form fields the custom field corresponds to:

  1. HTML form element’s id attribute.
  2. HTML form element’s name attribute.
  3. HTML form element’s corresponding label value.
  4. HTML form element’s aria-label attribute.
  5. HTML form element’s placeholder attribute.

The HTML attribute autocomplete should also be added to this list. You can read MDN’s page about the autocomplete attribute. It has standardised values such as family-name (for last name), email for email address, username for username, tel for telephone number, street-address for the first line in an address, etc.