Chrome ugly message when autofill is disabled Chrome ugly message when autofill is disabled google-chrome google-chrome

Chrome ugly message when autofill is disabled


Just stumbled upon the same problem and found a simple fix.

You have to add the autocomplete attribute directly to the input field NOT to the whole form.

This code works:

<form method="get" action="index.php">    <input type="text" name="q" autocomplete="off">

And this won't

<form method="get" action="index.php" autocomplete="off">    <input type="text" name="q">


It Works for me :)Guys you just need to add this code under the form tag, please check below:<form><!-- fake fields are a workaround for chrome autofill getting the wrong fields-->				<input type="text" name="fakeusernameremembered" style="display: none;" />				<input type="password" name="fakepasswordremembered" style="display: none;" />			<!--It helps me to remove the autofill in Chrome-->..........</form>