Hi, How to do validation for email field in microflow

0
How to do validation for email field in microflow
asked
2 answers
1

Hey Swapna,
For this, you can use a regex expression, 
in the entity validation tab,

you can use this expression for email validation,
' ^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$ '

 

you can refer to the image below for applying this regex,


Hope it helps!

answered
-1

Hi Swapna,

Add a decision to your microflow and set it to condition $object/email=empty if true throw an error message else continue. If you want to check the format of the email id then use ismatch($object/email, regular expression).

 

reference: https://docs.mendix.com/refguide/string-function-calls/

 

 

 

 

answered