Our contact-management software enables users to add contact details for their friends to their account.
One of the details you can add is "email address". However for some reason on Safari the email address field gets autofilled with the user's own email address that they use to log in. It doesn't happen if you turn off the "autofill" option under "preferences", but that's obviously not a workable solution for all our users.
I've tried adding autocomplete="off"
but it seems that this is just ignored by Safari.
Here are the two fields:
Login Field:
<input type="email" class="input-block-level" placeholder="Email address" name="email" id="user_email">
Internal Field:
<input type="text" id="pri_email" autocomplete="off" name="pri_email">
What I can't understand is why Safari even thinks they are the same thing. They have different ids and names.
How can I stop this from happening? Preferably without hacky work-arounds like the ones suggested here.
value="[email protected]"
) …? – Legiblejavascript field.value = "some value";
especially ifvalue=""
is set on the HTML. – Roxaneemail
in the input, whether it's on the name, the type, or even the placeholder. – Meganmeganthropus