[Solved] How do I style the text input keyboard to be numeric?

Hey, guys, I have a query about one of my projects.

I’m trying to get a “numeric” Text Input. I know that on phone you can use the numeric keypad, but on computer I’m trying to prevent any letters going through moderation.

Please help as I’ve already tried viewing some videos. Did not help.

1 Like

Change the Keyboard to numeric

image

3 Likes

Yes I have done that, but I want it to be numerical only on computer too. Even if I do numeric it still doesn’t help.

1 Like

Hey @krishnmbrthunker

Great question. What kind of app are you working on? Are you usually having your users use a web app/

This is not possible to limit the type of input provided when using a web app UNLESS you include validation. you can include a validation function and fire it every time there is a change thus being able to remove the ‘illegal’ characters.

2 Likes

To simulate Numeric keyboard when using the app from the computer, use the following code

1 Like

Thank you for the help. This really helped me with my app and is working just fine. I have made just a few tweaks to your suggestion. Thanks, @muneer!

3 Likes