Mahmoud
Mahmoud

Reputation: 936

Disable automatic keyboard correction on HTML input

For a web application open on Android Chrome. Is it possible to disable automatic keyboard correction on a specific HTML input.

Thanks for your help.

enter image description here

Upvotes: 2

Views: 2101

Answers (3)

Aidin
Aidin

Reputation: 30007

It's a bug in Chromium.

In fact, the behavior of that row changes based on the HTML element (try <input type="password" autocorrect="newpassword" /> and see the suggestions turn into 0-9 numbers). Chrome needs to respect what developers intend to.

Please upvote/star that bug.

Upvotes: 0

Pankaj Sati
Pankaj Sati

Reputation: 2539

I don't think it is possible to disable Android's automatic keyboard correction for an input type in HTML.

But you can show a custom keyboard instead of standard Android OS keyboard. With your own keyboard you will have more flexibility over the user input. You can also reduce some keys or add keys for special symbols if you want.

Checkout this form for more details. It has links to some articles which will help you to implement it.

https://stackoverflow.com/a/22876767/10602679

Upvotes: 1

oel
oel

Reputation: 97

Including following attributes in an input or textarea will disable this:

autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" 

e.g.

<input autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" />

Upvotes: 4

Related Questions