how-can-i-to-autocomplete-disable-when-i-to-use-google-chrome

Questionshow-can-i-to-autocomplete-disable-when-i-to-use-google-chrome
Cristian Engelmann asked 4 years ago

Hi Abu,

how can i disable autocomplete when i use the Google chrome. In my code there isn't autocomplete.
When I use FireFox does not work autocomplete, it's OK. But the problem is twith Google Chrome.

$col = array();
$col["title"] = "Nombres";
$col["name"] = "Nombres";
$col["width"] = "35";
$col["align"] = "left";
$col["search"] = true;
$cols[] = $col;

Thank You
5 Answers
Abu Ghufran Staff answered 4 years ago

Google chrome versions behave differently for autocomplete config.

Along with other options, you can try following:

$col[“editoptions”][“autocomplete”] = “off”;

The keys supplied to editoptions array are transformed to input tag attributes.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Cristian Engelmann answered 4 years ago

Thank you Abu,

But it doesn’t work on Google Chrome.

Cristian Engelmann answered 4 years ago

$col = array();
$col[“title”] = “Nombres”; // caption of column “<center>Código<br>Producto</center>”;
$col[“name”] = “Nombres”; // field name, must be exactly same as with SQL prefix or db field
$col[“width”] = “35”;
$col[“align”] = “left”; // this column is not editable
$col[“search”] = true; // this column is not searchable
$col[“editoptions”][“autocomplete”] = “off”;
$cols[] = $col;

Abu Ghufran Staff answered 4 years ago

After some research, I found a long story by chrome developers.
468153 – autocomplete=off is ignored on non-login INPUT elements – chromium

As an example, if you have an address input field in your CRM tool that you don’t want Chrome to Autofill, you can give it semantic meaning that makes sense relative to what you’re asking for: e.g. autocomplete=”new-user-street-address”. If Chrome encounters that, it won’t try and autofill the field.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Cristian Engelmann answered 4 years ago

Hi Abu,

Now, It does work. Why?

$col[“editoptions”][“autocomplete”] = “not-find null-in”;

 

Thank you again

Your Answer

2 + 13 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?