facebook

Turning off auto word complete in an iPhone textbox: CLOSED

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #338558 Reply

    Pauldivaniii
    Member

    I am building a data gathering application and for certain text fields, like street names, we want to turn off the built-in iPhone feature that automatically suggests words while the user is entering text into the field.

    Is there a way to turn this feature off for a text field?

    #338661 Reply

    Hi Pauldivaniii,

    I’ve done an investigation and found that you should set the autocorrect attr to off in your <input> tags (textfields):

    <input type=”text” id=”your-field” autocorrect=”off” />

    To include this attr in your textfield you can add the next code in the phoneui.documentReadyHandler function:

    $("#m1-<screenName>-<textfieldName>").attr("autocorrect","off");

    Worked well on iPod touch iOS 6.1.3

    #339924 Reply

    Pauldivaniii
    Member

    Thanks Octavo. I just now saw this and added it to my application name fields.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Turning off auto word complete in an iPhone textbox: CLOSED

You must be logged in to post in the forum log in