You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Passwords seem to autofill on forms using autofill=off.
We were using the following HTML in an admin area where an admin user needs to create new users. We don't want the current user's email/password auto filling.
The above appeared to autofill username & password on Windows Edge.
Solution
It would be valuable to have some clear patterns we can re-use for things like login, sign up forms. I appreciate we need to test these and see how reliably they work.
Use autocapitalize="none", autocorrect="off" and spellcheck="false" to stop browsers automatically changing user input on fields that expect grammatically incorrect data, such as email addresses and passwords.
I think the attribute is supposed to be autocomplete, not autocorrect.
Thanks for this @simonrjones. Agree it will be good to get a solid patterns documented for this (or as solid as we can, given that last note from GOVUK)
For the moment, I think all things related to forms should be noted on the forms page. Currently only form error messages have a dedicated page - mainly because the JavaScript that brings the error message into focus was causing the page to automatically scroll half way down to where the error message was when it was all covered on a single page, which was jarring.
I would suggest a new headed section on the current forms page discussing the use cases for disabling autofilling of form inputs where necessary and providing examples.
Problem
Passwords seem to autofill on forms using autofill=off.
We were using the following HTML in an admin area where an admin user needs to create new users. We don't want the current user's email/password auto filling.
<input type="password" class="tbxforms-input tbxforms-input--text" name="password" id="password" value="" autocomplete="off">
The above appeared to autofill username & password on Windows Edge.
Solution
It would be valuable to have some clear patterns we can re-use for things like login, sign up forms. I appreciate we need to test these and see how reliably they work.
If the team come up with patterns for this, should we add this to https://amplify.studio24.net/amplify/fundamentals/forms.html
Or have separate pages for this sort of thing?
References
Re: https://amplify.studio24.net/amplify/fundamentals/forms.html
I think the attribute is supposed to be autocomplete, not autocorrect.
https://caniuse.com/?search=autocomplete reports patchy support for autocomplete=off
GOVUK notes:
https://design-system.service.gov.uk/components/password-input/
The text was updated successfully, but these errors were encountered: