0
I have a problem with a criminal record. When registering the browser asks if it wants to save the user and password, the problem is that it saves a field nothing see as user but the password it writes correctly. My form looks like this:
<form id="form_cadastro" autocomplete="off">
<div id="passo1">
<input name="email" id="email" type="email" class="validate" />
</div>
<div id="passo2">
<input name="nome" id="nome" type="text" />
</div>
<div id="passo3">
<input name="endereco" id="endereco" type="text" />
<input name="complemento" id="complemento" type="text" />
</div>
<div id="passo4">
<input name="senha" id="senha" type="password" />
</div>
</form>
But when giving a submit
via $.post
Jquery in the form, and redirecting the page the browser is saving(asking to save) the value of the field complemento(do endereço)
as user! So when the user goes to the login screen the Auto complete/Auto Fill
Browser brings in the user field (which is the email) the value of the complement field:
<form id="form_cadastro" autocomplete="off">
<input name="email" id="email" type="email" class="validate" /> // Autocomplete vindo o complemento(do endereço)
<input name="senha" id="senha" type="password" />
</form>
I’d have some way of settling this in a way that doesn’t use too much gambiarra?
https://developers.google.com/web/updates/2015/06/checkout-faster-with-autofill tries to use the autocomplete attribute in the input
– Rovann Linhalis
@Rovannlinhalis that never worked for me :P.
– Bruno Romualdo
Put the email input above the password input (instead of the add-on) and see which animal will give.
– user60252
Makes sense that Dae @Leocaracciolo rsrs
– Rovann Linhalis
Chrome with login and password is annoying, plus give that undesirable yellowish in the field of a page that is not his
– user60252