Skip to content

Autocomplete on fields #34

Open
Open
@bsuligoj

Description

@bsuligoj

Some fields still need autocomplete, but due to standards, some forms are not compliant with autocomplete requirements.

Based on Mozilla developers guidelines the form needs the following:

  1. Have a name and/or id attribute
  2. Be descendants of a element
  3. The form to have a submit button

Most forms were fixed and have the first 2 points covered, but the form to enter the IMEI (Or select the device in Chripstack case) is standalone without submit button. This form is actually never submitted and therefore browser is not saving the data.

A few workarounds that might work:

  • When sending the requests, a hidden fields with same name might force the browser to store the value.
  • Fake submitting form (I've tried this already with no success)
  • Custom autocomplete used by elements plus, the downside is that this will be stored in local storage of browser, the good side is that it is not dependant on browser and settings)

Note: Autocomplete feature is otherwise highly dependant on users browser and browser settings. Each browser is treating this differently and some browser have different settings for "forms" and "logins". For example "username" field might be trated as normal form somewhere and autocomplete will work while on some other browser it might be treated as "login". If you do not have enabled storing the login in browser than in this case autocomplete would not work. E.G. in firefox this are 2 different settings, "Remember search form and history" and "Ask to save logins and passwords for websites".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions