Numeric keyboard on iPad

Hi all,

in my app I have a input text field with this option: object.inputType = “number”. On iPhone this is perfect because appears a keyboard that allows to write only numeric characters. But on iPad the numeric keyboard is different, because in addition to the numbers there are some other characters such as , . ; () etc. Is there a way to avoid that the user writes characters which are not numbers? 

Ultimately i want that the user is able to insert just numeric characters.

Could I use the object.inputType = “phone”?

Thanks all

Hi Davide,

If the “phone” keypad gives you numbers and nothing else, go ahead and use it. Alternatively, you could allow the user to enter things like , . ; ( ), but then, when the field is submitted, search for and remove those characters from the string.

Best regards,

Brent

Hi Davide,

If the “phone” keypad gives you numbers and nothing else, go ahead and use it. Alternatively, you could allow the user to enter things like , . ; ( ), but then, when the field is submitted, search for and remove those characters from the string.

Best regards,

Brent