Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Only numbers as keyboard input for ipad

Tags:

ipad

I have to display a number pad as keyboard for a textfield (it can take only numerals) in case of ipad.setting keyboard type as UIKeyboardTypeNumberPad displays numeric keyboard but user can switch back to alphabets.Is there any keyboard for ipad that just displays numbers?

like image 930
Swastik Avatar asked Oct 22 '10 12:10

Swastik


People also ask

How do I change the keyboard input on my iPad?

Go to Settings > General > Keyboard > Keyboards. Tap a language at the top of the screen, then select an alternative layout from the list.

How do I get my typing keyboard back to normal on iPad?

How to get your split iPad keyboard back to normal. Tap a text field in an app to make the keyboard appear. Touch and hold the keyboard button in the lower-right corner of the keyboard. Slide your finger up to either Merge or Dock and Merge, then let go.


2 Answers

Use the input type "number"

<input type="number" />

or failing that use a validation pattern which only accepts numbers.

<input type="text" pattern="[0-9]*" />

Both of these should bring up the num pad on iPhones and bring up the iPad keyboard with the numbers exposed (amongst the other keys)

like image 50
sidonaldson Avatar answered Oct 13 '22 12:10

sidonaldson


You would have to create your own keyboard to accomplish this.

like image 41
Evan Mulawski Avatar answered Oct 13 '22 14:10

Evan Mulawski