1324
Views
8
Comments
Solved
Phone number validation

I have created a vehicle showroom app (Reactive web),for getting customer's information I used to fill a form for customer based on that  I have to use form validation when applying the condition for phone no validation but it's not working properly. Screenshort is attached.


Screenshot (6).png
2025-05-05 10-10-34
Vednarayan
Solution

Hi @Premkumar Rajavel 

You need to validate the phone number using regex

1. Create Regex_Search server action and apply the regex.



I hope this will help you

Thanks and regards

Vednarayan 

UserImage.jpg
Premkumar Rajavel

I got the output, Thanks for your support.


2024-03-20 08-23-38
PatrickNguyen

Hi @Vednarayan, 

I have used your solution and I worked so well however now if I had another case that user want to press the country code (for example : +82) then it will be shown "Please enter valid phone number". Do you have any solution for this? 

Sincerely,

Patrick Nguyen

2024-01-31 05-29-41
Akshay Deshpande

hello prem,

you are using wrong validation from my  prospective if you are checking try to used

length(mobile number)= 10 then true else Invalid number like wise and for more valid number check there are java script present so used that I have attached URL as well as OML for you

working OML :-
https://akshayproject.outsystemscloud.com/Rolecheck/Phonenumbervalidation?_ts=637756876934262412



Thanks and Regards,

Akshay Deshpande

Mobile Number.oml
2025-05-05 10-10-34
Vednarayan
Solution

Hi @Premkumar Rajavel 

You need to validate the phone number using regex

1. Create Regex_Search server action and apply the regex.



I hope this will help you

Thanks and regards

Vednarayan 

UserImage.jpg
Premkumar Rajavel

I got the output, Thanks for your support.


2024-03-20 08-23-38
PatrickNguyen

Hi @Vednarayan, 

I have used your solution and I worked so well however now if I had another case that user want to press the country code (for example : +82) then it will be shown "Please enter valid phone number". Do you have any solution for this? 

Sincerely,

Patrick Nguyen

2021-07-14 09-27-33
Luís Cardoso

Hi Premkumar Rajavel

What is the format of the phone number that do you want to validate?

BR,

Luis


2019-11-11 17-10-24
Manish Jawla
 
MVP

Hi @Premkumar Rajavel ,

You can check the below forge component as well for your reference.

https://www.outsystems.com/forge/component-overview/11214/reactive-client-side-validation 

Regards,

Manish Jawla

UserImage.jpg
Felix Tantra

Hi @Vednarayan How can I create The Regex server action? I Found no regex in here


UserImage.jpg
Anupam Praveen

Hi @Felix Tantra,

You need to go to manage dependency section and over there search for text extension. On clicking on the text extension you will see two server actions Regex _Replace and Regex_Search option over there. You need to select those two options from there and click on apply. After that you would be able to see server actions under your logic tab.

Regards,

Anupam Praveen

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