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
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.
$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;
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.