Restrict numeric

Hey,

I have input and I want to restrict the user to put numeric value can I do it without plugins ?



Thanks. :) 

Solution

Hey,

you can use regax for better experience as shown below

Add reference of regax search from text in manage dependancies.

Drag drop ragax search on your input change and pass pattern as 

"^(0|[1-9][0-9]*)$"

Hope this will help you.

thanks

Yogesh

Hi,

First thing you can do is set Input Type as Number.

Regards,

Khuong

Hi khungo,

Thank you for answering no what I want the opposite to make the input only be text .

Hi Yousef,

Can you do a quick try this?

Regards,

Khuong

Solution

Hey,

you can use regax for better experience as shown below

Add reference of regax search from text in manage dependancies.

Drag drop ragax search on your input change and pass pattern as 

"^(0|[1-9][0-9]*)$"

Hope this will help you.

thanks

Yogesh

Thank you dear it's  works 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.