Integer regex

  • 22 November 2023
  • 5 replies

Badge +3

How to add a validation for a text feild to accept only integer numbers only without commas as shown below


5 replies

Userlevel 6
Badge +16

Hi @wejdan 

You can use Regex (Regular Expression) as the validation method

Means accept 0 or more digits


Means accept between 2-6 digit 




Badge +3

it is accept string also, How it can be accept only numbers

Userlevel 6
Badge +16


Is this a Text-Short field? And is the field to accept only numerical values or digits?

If Yes,
   Set Validation to Regular Expression


   Set the Pattern

Exactly 4 digits eg “1234 ^(\d{4})$
Between 2-8 digits ^(\d{2,8})$
Exactly 3 or 5 digits “123” or 
One more digits ^(\d)$


Badge +3

yes text short feild, put all those patterns doesn’t work

Userlevel 6
Badge +16

Can you provide examples of what will be accepted and what should failed?