Validations for mobile number

Hi,

I have requirement to put validation while entering the mobile number. Actually I have taken text Field component for mobile number and kept the validation using function "len" 

if(len(local!variable) > 10) then I am displaying the error message saying "enter up to 10 digits". But the issue is as I am using text field it even accepting the alphabetical values like "sdfghfghfASSD". But it should not accept alphabetical values, it should accept only digits if the user enters alphabetical values by mistake then it should give the error message.

How does it possible is there any solution? Can anyone please help on this?

 

Note: I have used integer field component too but it allows only digits up to 8.

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data