Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome ugly message when autofill is disabled

Since Chrome recently upgraded, I've started to see the message "This web page has disabled automatic filling for this form." all over my website when form controls are clicked (OK, accidently double clicked) where autocomplete="off" (we're talking about chat rooms etc where the browser really doesn't need to remember previous messages sent).

It's pretty ugly, does anybody know how to disable this? I can't find much information on the web, other than things dating back to 2010 just saying that this is a feature. The thing is, it's only just started happening for me on the latest version, same for another computer running Chrome.

Any ideas?

Cheers

like image 378
Mike Avatar asked Nov 01 '11 22:11

Mike


People also ask

How do you remove this form is not secure Autofill has been turned off?

Click on "Settings." Choose "Privacy & Security." In the "Forms and Autofill" section uncheck the options for which you wish to disable Autofill. The system will automatically save your settings.

Do browsers respect autocomplete off?

Chrome respects autocomplete=off only when there is at least one other input element in the form with any other autocomplete value. This will not work with password fields--those are handled very differently in Chrome.

Why is my Autofill not working on chrome?

On the top right corner click on the Menu icon. Then, click on Settings. From the list on the left side of the screen, click on Autofill. Click on Passwords and turn on the toggle for Offer to save passwords.


1 Answers

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">
like image 133
Alex B. Avatar answered Oct 03 '22 22:10

Alex B.