How to restrict user to enter only number in the PersonalNo field?
Question

how to restrict user to enter only number in the Personal No field?

In the below screenshot we can see the Name as text and personal No as both text and number, but I want to display Personal as only number.

So, how to do that, please suggest me. 


Thank you

Captur.PNG

Hello Subhash,


If want to allow users to enter only Numbers then  keep the Input type as a Number like below:

Hope it will help you!!

Perfect 

Hi Krushana Mantri


Now I have Personal No with Number and Text as shown in the screenshot, but I wanted to display only number entries in the  admin board.


Please find the below screenshot for your reference.


Thank you


Captur.PNG

As suggested above either you change the datatype to Number. If don't want to change you can apply a regex to check that only number input is allowed.

Regards

Hello  ,

As per your requirement , there is no need to change data type (text). you want to only show only number in grid .

So please add condition on div visibility or add it in If condition.

If(TextToInteger(personalNo)>0 or TextToLongInteger(personalNo)>0,True,False)

Note : Change data type number if you not allow user to input text.

Thanks

Rahul Jain



You are absolutely right Rahul, Now I got this and number showing as true value and text showing blank, I hope it is working but some issues.


Thank you

Capt.PNG

Is any other issue while implement it , Please share me.

Firstly, Thanks for your support Rahul.

In display entry I got this number showing as true value and text showing blank, I hope it is working but some issues. 

I hope you will  find the screenshot below.


Thank you

Capt.PNG

Please add phone number in a container and apply this condition on that container visibility.

Or you can use if condition here and add  this condition in if 

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