2

I've got a PhoneGap app with an <input type="number" />.
The problem is that the keyboard has a toolbar above it with Previous, Next, and Autofill.

There's only one form field, so Next and Previous aren't useful. The number will be different each time and isn't contact info, so AutoFill also isn't useful.

Is there a way to hide or disable this toolbar?

Nathan
  • 6,772
  • 11
  • 38
  • 55
  • If the whole toolbar would be disabled, how would the user be able to hide the keyboard? The "Done" button would be gone as well wouldn't it? – Louis B. Jan 01 '12 at 13:00
  • @mobweb You can tap outside of where the keyboard is to hide it. There's plenty of space for that. – Nathan Jan 01 '12 at 15:41
  • OK yes you could do that. But that might not work in all cases. So I'm thinking that Apple wouldn't allow this toolbar to be hidden because the user always expects to be able to close the keyboard that way. :/ – Louis B. Jan 01 '12 at 17:56
  • Turns out I was wrong? It seems that there is a way to do this: http://stackoverflow.com/questions/8718411/how-do-i-install-this-script-into-phonegap-for-ios – Louis B. Jan 04 '12 at 08:42

1 Answers1

0

iOS looks at form elements Names, ID's or Classes, along with labels that correspond with these inputs. Try changing the names of these to more obscure titles to stop AutoFill, it's worked in my experience.

Ryan Brodie
  • 6,554
  • 8
  • 40
  • 57