0

So I'm running a webview and I want to change the keyboard to numeric on a form element if it is a Numeric Input, but I'm unable to do so. So is there any way to do it or it is not even possible?

Vibhanshu Biswas
  • 379
  • 1
  • 15

2 Answers2

0

In your webview try putting <input type="number" .../> and the keyboard should automatically change to numeric.

Antoine El Murr
  • 317
  • 1
  • 13
0
<input type="number" />
<input type="tel" />

Both of these present the numeric keypad when the input gains focus. Credit goes to Richard Kernahan over at How to force keyboard with numbers in mobile website in Android. Cheers