Ben Lynch
Ben Lynch

Reputation: 189

Android Chrome disable auto-suggest on search input form

I have the following search form:

<div id="search_banner">
    <form id="intranet_search" class="search" action="<?=base_url()?>search/">
        <div id="intranet_search_search_bar">
            <input type="search" id="intranet_search_q" name="q" spellcheck="false" autocomplete="false" autocorrect="false" placeholder="search intranet" value="<?=$intranet_search_query?>" />
            <input type="search" id="intranet_search_ac_hint" spellcheck="false" autocomplete="false" autocorrect="false" disabled />
            <input type="submit" id="intranet_search_button" value="Search">
        </div>
        <div id="intranet_search_ac"></div>
    </form>
</div>

Which emulates Google's autosuggest inserted into the element #intranet_search_ac via javascript. This works as expected.

However on Chrome for Android (40.0.02214.109) I get the following suggestion appearing on top of my suggestions (highlighted below):

Chrome auto-complete

As you can see from the form I am using the usual spellcheck="false" autocomplete="false" autocorrect="false" attributes. Is there any way to disable this behaviour?

Upvotes: 2

Views: 1666

Answers (2)

Dmitry Kirilyuk
Dmitry Kirilyuk

Reputation: 69

Currently it's not possible. I reported a ticket to support autosuggest="off", you can vote for it. https://bugs.chromium.org/p/chromium/issues/detail?id=901839

Upvotes: 0

Okeydoke
Okeydoke

Reputation: 1357

try using autocomplete="off" autocorrect="off" spellcheck="false"

Upvotes: 4

Related Questions