How to validate email address for specific domain ? like user can enter only - xyz@"gmail.com", in outsystems reactive application. I want to validate email address. User cant enters the email address anything without gmail.com...
Hi Shilpa ,
for this we can use regex for validate specific domain .
Regex : [a-z0-9]+@gmail.com
Demo Url : https://personal-x1ixzlcz.outsystemscloud.com/APITEST/regex?_ts=637978157912087462
also attaching oml please check it.
Thanks
Thank You for your reply, your solution is working.
Thanks once again.
Glad to help you .
Kind regards ,
Kundan Chauhan
Hello Shilpa,
You could use an index like below:
If(Index(Email, "@gmail.com") > -1,True,False)
This wil look if the email address contains "@gmail.com"
Hope this helps,
Kind regards
In general, avoid If-s that only have "True" and "False" as result. This is superfluous
Index(Email, "@gmail.com") > -1
as it already returns True or False, no need to put an If around it!
Hi,
We can also use a Javascript function and add