Google Chrome Autocomplete Bug

Web developers… here’s a bug you might encounter when doing html forms.

If you are testing your forms and you use Google Chrome’s “autocomplete” feature, all radio buttons and checkboxes are cleared! (For example, if you use “autocomplete” to fill in a text box, any radio buttons or checkboxes that you set earlier are now unset). The effect is that when you hit the Submit button, your processing script (say, a php file) doesn’t get the inputs it is looking for.

This has been seen in chrome version 27.0.1453.110 m. Also: 27.0.1453.93.

A bug report has been filed.

Current Workaround

Best thing to do is to add autocomplete=”off” to all radio and checkbox fields when you are setting up your input form.

For example:

<input name=”radio” type=”radio” id=”something” value=”whatever” autocomplete=”off”/>

Hopefully you haven’t spent too much time, pulling your hair out wondering why your _POST or _GET variable isn’t showing up when processing form inputs (like I did).

– Bill

Posted in Blog