Short version: how can I stop as many browsers as possible from offering
to supply names, addresses, emails and so on when users fill in a form
that has nothing to do with their details?
Longer version: I have a web app where users have to enter data about
other people. Most browsers offer to fill in the user's name when a
form field "looks like" a name field, but this is annoying for my users because the one name they will never be entering is their own! The
annoyance is partly just that the "offer" gets in the way, but also
because on some browsers (e.g. Chrome on a phone) the offer involves
chrome drawing a bar above the virtual keyboard taking up scarce screen
space and, in a couple of cases, obscuring other significant controls.
Advice from the web suggests that, for some recent browsers, putting "autofill=xzzy-or-some-other-garbage" will help. For Chrome on Android,
that stops names (for example) being suggested, but a blank bar with a
key, a credit card and a location icon still pops up. I.e. it seems to prevent chrome from knowing /what/ to offer, but does not prevent the
waste of space, so this does not help at all.
A secondary concern, which I have so far not investigated, is whether
filling in these details will cause my user's browsers to fill up with
other people's details.
What would be ideal is some setting like autofill=alien that would alert
the browser to the fact that this form is not about the user. Judging
by the number of reports of similar issues that I see, there is no good solution, but then the web has long ceased to be a place populated with expert advice so I hold out a glimmer of hope...
Short version: how can I stop as many browsers as possible from offering
to supply names, addresses, emails and so on when users fill in a form
that has nothing to do with their details?
Advice from the web suggests that, for some recent browsers, putting "autofill=xzzy-or-some-other-garbage" will help. For Chrome on Android,
that stops names (for example) being suggested, but a blank bar with a
key, a credit card and a location icon still pops up.
On Wed, 29 Mar 2023 20:40:42 +0100, Ben Bacarisse wrote:
Short version: how can I stop as many browsers as possible from offering
to supply names, addresses, emails and so on when users fill in a form
that has nothing to do with their details?
Longer version: I have a web app where users have to enter data about
other people. Most browsers offer to fill in the user's name when a
form field "looks like" a name field, but this is annoying for my users
because the one name they will never be entering is their own! The
annoyance is partly just that the "offer" gets in the way, but also
because on some browsers (e.g. Chrome on a phone) the offer involves
chrome drawing a bar above the virtual keyboard taking up scarce screen
space and, in a couple of cases, obscuring other significant controls.
Advice from the web suggests that, for some recent browsers, putting
"autofill=xzzy-or-some-other-garbage" will help. For Chrome on Android,
that stops names (for example) being suggested, but a blank bar with a
key, a credit card and a location icon still pops up. I.e. it seems to
prevent chrome from knowing /what/ to offer, but does not prevent the
waste of space, so this does not help at all.
A secondary concern, which I have so far not investigated, is whether
filling in these details will cause my user's browsers to fill up with
other people's details.
What would be ideal is some setting like autofill=alien that would alert
the browser to the fact that this form is not about the user. Judging
by the number of reports of similar issues that I see, there is no good
solution, but then the web has long ceased to be a place populated with
expert advice so I hold out a glimmer of hope...
JavaScript can be used to set up a 100ms fire-once timer when the web page has been loaded, where when triggered, it'll reset forms and/or clear all form fields. That should remove auto-filled form fields.
Ben Bacarisse wrote:
Short version: how can I stop as many browsers as possible from offering
to supply names, addresses, emails and so on when users fill in a form
that has nothing to do with their details?
Short answer: use the attribute autocomplete="off" on the <input> element(s) or, to affect all fields in a form, on the <form> element. Regarding browser support, see
https://caniuse.com/?search=autocomplete
Advice from the web suggests that, for some recent browsers, putting
"autofill=xzzy-or-some-other-garbage" will help. For Chrome on Android,
that stops names (for example) being suggested, but a blank bar with a
key, a credit card and a location icon still pops up.
I cannot figure out what you mean here. A code sample might help.
Anyway, there are various quirks related to the autocomplete attribute and
to various browsers, e.g. for password fields, so a long answer could be really long.
There are various cases discussed at https://stackoverflow.com/questions/2530/how-do-you-disable-browser-autocomplete-on-web-form-field-input-tags
Ben Bacarisse, 2023-03-29 21:40:
Short version: how can I stop as many browsers as possible from offering
to supply names, addresses, emails and so on when users fill in a form
that has nothing to do with their details?
Yes.
For the whole form: <form autocomplete="off">
For a single input element: <input type="text" autocomplete="off">
[...]
Advice from the web suggests that, for some recent browsers, putting
"autofill=xzzy-or-some-other-garbage" will help. For Chrome on Android,
No, this is not correct, see above.
Ben Bacarisse, 2023-03-29 21:40:
Short version: how can I stop as many browsers as possible from offering
to supply names, addresses, emails and so on when users fill in a form
that has nothing to do with their details?
Yes.
For the whole form: <form autocomplete="off">
For a single input element: <input type="text" autocomplete="off">
Also see:
<https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion>
[...]
Advice from the web suggests that, for some recent browsers, putting
"autofill=xzzy-or-some-other-garbage" will help. For Chrome on Android,
No, this is not correct, see above.
Short version: how can I stop as many browsers as possible from offering
to supply names, addresses, emails and so on when users fill in a form
that has nothing to do with their details?
Advice from the web suggests that, for some recent browsers, putting "autofill=xzzy-or-some-other-garbage" will help. For Chrome on Android,
Arno Welzel, 2023-04-01 00:18:
Ben Bacarisse, 2023-03-29 21:40:
Short version: how can I stop as many browsers as possible from offering >>> to supply names, addresses, emails and so on when users fill in a form
that has nothing to do with their details?
Yes.
For the whole form: <form autocomplete="off">
For a single input element: <input type="text" autocomplete="off">
Also see:
<https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion>
[...]
Advice from the web suggests that, for some recent browsers, putting
"autofill=xzzy-or-some-other-garbage" will help. For Chrome on Android,
No, this is not correct, see above.
Ok, got it - it's not about stopping autofill but stopping Chrome from showing password suggestions. But I think, this can not be done in a
Website only.
Also the workaround using "readonly" and disabling this when focusing
the element does not work - seems Chrome seems to ignore that completely:
<https://arnowelzel.de/samples/noac.html>
Maybe this is the result of people started complaining that they are not
able to save passwords because of autocomplete="off" and at some point
Chrome ignored that then to solve this.
Arno Welzel <usenet@arnowelzel.de> writes:[...]
Ok, got it - it's not about stopping autofill but stopping Chrome from
showing password suggestions. But I think, this can not be done in a
Website only.
I'm talking about name, telephone number and email fields. For my
use-case, any passwords will be those of the user, so a suggested
password is fine. The problem I am seeing is that users will be
entering other people's names and so on, and yet their own details will
keep popping up as suggestions (in Chrome). It's a comparatively
trivial issue on a desktop, but on the phone version the suggestions
take up valuable screen space.
Also the workaround using "readonly" and disabling this when focusing
the element does not work - seems Chrome seems to ignore that completely:
<https://arnowelzel.de/samples/noac.html>
That document uses autofill=none. Is that a Chrome extension?
Combining autocorrect=off and autofill=none works for my desktop Chrome,
but not for Android Chrome where although specific suggested names are
not offered, the bar still pops up with three icons for address, payment
and password filling.
Ben Bacarisse, 2023-04-01 01:24:
Arno Welzel <usenet@arnowelzel.de> writes:[...]
Ok, got it - it's not about stopping autofill but stopping Chrome from
showing password suggestions. But I think, this can not be done in a
Website only.
I'm talking about name, telephone number and email fields. For my
use-case, any passwords will be those of the user, so a suggested
password is fine. The problem I am seeing is that users will be
entering other people's names and so on, and yet their own details will
keep popping up as suggestions (in Chrome). It's a comparatively
trivial issue on a desktop, but on the phone version the suggestions
take up valuable screen space.
Yes, I see. However most mobile devices are nowadays quite tall with "FullHD+" at 1080*2560 pixels so screen space should not be a real issue
in many cases.
Also the workaround using "readonly" and disabling this when focusing
the element does not work - seems Chrome seems to ignore that completely: >>>
<https://arnowelzel.de/samples/noac.html>
That document uses autofill=none. Is that a Chrome extension?
No, just trial/error.
Combining autocorrect=off and autofill=none works for my desktop Chrome,
but not for Android Chrome where although specific suggested names are
not offered, the bar still pops up with three icons for address, payment
and password filling.
Yes, same here and not only in Chrome but also Vivaldi which is Chrome
based.
Arno Welzel <usenet@arnowelzel.de> writes:
Yes, I see. However most mobile devices are nowadays quite tall with
"FullHD+" at 1080*2560 pixels so screen space should not be a real issue
in many cases.
The worst effect is that Chrome does not scroll the screen to take this
into account, so in at least one case I've seen, when then input field
is followed by, say, a submit button, the button will be obscured by the
bar. Chrome scrolls the page properly to account for the keyboard
popping up, but not for the extra bar. It's a trivial matter, but it's
the kind of thing that will annoy some users.
In comp.infosystems.www.authoring.html,
Ben Bacarisse <ben.usenet@bsb.me.uk> wrote:
Arno Welzel <usenet@arnowelzel.de> writes:
Yes, I see. However most mobile devices are nowadays quite tall with
"FullHD+" at 1080*2560 pixels so screen space should not be a real issue >>> in many cases.
Most does not equal all. My daily device(*) is 480x854.
The worst effect is that Chrome does not scroll the screen to take this
into account, so in at least one case I've seen, when then input field
is followed by, say, a submit button, the button will be obscured by the
bar. Chrome scrolls the page properly to account for the keyboard
popping up, but not for the extra bar. It's a trivial matter, but it's
the kind of thing that will annoy some users.
Looking at <https://arnowelzel.de/samples/noac.html>, while adding
text in the third input box:
https://i.imgur.com/yJLhXqx.jpg
I can't see where I'm typing because I can't scroll (Firefox on Android
in my case).
In comp.infosystems.www.authoring.html,
Ben Bacarisse <ben.usenet@bsb.me.uk> wrote:
Arno Welzel <usenet@arnowelzel.de> writes:
Yes, I see. However most mobile devices are nowadays quite tall with
"FullHD+" at 1080*2560 pixels so screen space should not be a real issue >>> in many cases.
Most does not equal all. My daily device(*) is 480x854.
The worst effect is that Chrome does not scroll the screen to take this
into account, so in at least one case I've seen, when then input field
is followed by, say, a submit button, the button will be obscured by the
bar. Chrome scrolls the page properly to account for the keyboard
popping up, but not for the extra bar. It's a trivial matter, but it's
the kind of thing that will annoy some users.
Looking at <https://arnowelzel.de/samples/noac.html>, while adding
text in the third input box:
https://i.imgur.com/yJLhXqx.jpg
I can't see where I'm typing because I can't scroll (Firefox on Android
in my case).
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 41:05:50 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,857,730 |