I need a text field where a user can type only certain characters like number field does where user can enter only numbers and dot.
I tried with setting the regex for the text field but it allows user to type other characters and on blur it shows validation message. But I don't even want to allow the user to put other characters in it.
Is there any way to get this?
Any help will be appreciated.