How to apply alphanumeric field for input field

Hello

In an input field, how do you ensure that users can only key in alphanumeric characters (i.e. A-Za-z0-9)? 

Note-

1)I have 30 input field, I tried to keep all fields must be alphanumeric

2)I work on reactive web app

Hi,


You can use many of the component on the forge, search for "input mask"

Hi,

you don't need masks. You just need to do regex nos inputs fields que queres fazer esse controlo:

How to use regular expressions

You can use too this component, It's safety: Reactive Utils - you can find a lot of actions, include the regex functions.


"^[a-zA-Z0-9]*$"

^ - Start of string

[a-zA-Z0-9]* - multiple characters to include

$ - End of string


Cheers

pratiksha Dabhade wrote:

Hello

In an input field, how do you ensure that users can only key in alphanumeric characters (i.e. A-Za-z0-9)? 

Note-

1)I have 30 input field, I tried to keep all fields must be alphanumeric

2)I work on reactive web app

Hi,

Please check the attached oml with working example.
You just need to add 2 extra attribute in your text box and thats it..