O'Reilly Forums: How To Use Autofill Feature In Mobile Safari - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How To Use Autofill Feature In Mobile Safari

#1 User is offline   Sean.D.L 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 22-January 13

Posted 22 January 2013 - 03:46 PM

Hi all,

Does anyone know how to use the AutoFill feature in Mobile Safari? I've been under the impression that it's driven by the name attribute on input elements. Here is some sample code:

<div class="clearfix">
 <input type="text" name="first_name" class="clearfix" />
</div>


I've clicked the AutoFill button a thousand times...nothing!

Thanks in advance.
0

#2 User is offline   AverageJake 

  • Active Member
  • PipPip
  • Group: O'Reilly Author
  • Posts: 36
  • Joined: 04-October 10
  • Gender:Male
  • Location:Seattle, WA

Posted 22 January 2013 - 04:58 PM

Sean,

I'm not sure if this is documented anywhere, but I looked at one of Apples forms that I found does work with Mobile Safari's AutoFill (iOS Only Link: https://connect.appl....com%2Fprograms)

They are using 'fname' for first name and lname for last name. You could look at the ids they're using. It also looks like you're only using the input's name. Have you tried setting it's id?

By the way, if you're on a Mac you can debug Mobile Safari by using desktop Safari's Develop menu.

Good luck,

Jake
0

#3 User is offline   Sarfraz Malik 

  • New Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 24-January 13

Posted 29 January 2013 - 02:43 AM

Thanks for sharing nice technique.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users