Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specify input for password manager autofill

Tags:

html

input

I have a form with multiple inputs, but when autofilling, the password manager always enters data in the first input above the password. Can I tell it to enter data in a specific input?

Code example:

<input placeholder="Your email" type="email"/>
<input placeholder="You fb id" type="text" />
<input placeholder="Your password" type="password"/>
like image 262
unicorns4re4live Avatar asked Dec 05 '25 06:12

unicorns4re4live


1 Answers

Chrome might think that your email and text inputs are the same, so it auto fills both of them. So, we are going to put an irrelevant "type" on one of the inputs.

<input placeholder="Your email" type="email"/>
<input placeholder="You fb id" type="url" />
<input placeholder="Your password" type="password"/>

We set the email type to email, fb id to url, and password type to password.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!