Art
Art

Reputation: 24597

Disable predictive text on iPhone for a form field

Is there an attribute which I can specify for an <input> element which would turn off the predictive text functionality for this given field?

Something along the lines

<input type="text" predictive="disabled" />

Upvotes: 7

Views: 7972

Answers (4)

Jorgen Builder
Jorgen Builder

Reputation: 31

As of September 28, 2023 disabling these two parameters is hiding the predictive text bar in iOS: autocorrect and spellcheck.

https://codesandbox.io/s/disable-predictive-text-ttncd4

Upvotes: 0

Ilya Sviridenko
Ilya Sviridenko

Reputation: 424

There are some options:

<input type="text" autocomplete="off" autocorrect="off" autocapitalize="off">

Upvotes: 11

Greg Stewart
Greg Stewart

Reputation: 686

On a per form field basis you can always do the following:

<input type="text" autocorrect="off" />

Upvotes: 6

Gabriele Petrioli
Gabriele Petrioli

Reputation: 196217

From the user side you can

Settings > General > Keyboard > Auto-Correction On/Off.

from the app side, i don't think it can be done.

Upvotes: 1

Related Questions