How to keep only certain elements

Hello … In Input dialog box asking for email address . we give user input like or or or and so on … then how to set condition to accept only or … when we type or then it should proceed to next step . also when we type or any keyword with it shouldn’t accept then again it go input dialog for asking enter correct email address… how to do this ?

pass email ID into a Global Variable use AnotherString = InStr(GlobalVariable,“@gmail”)
NewString = InStr(txt,“SearchKey”) - use this as if statement condition and pick the variable value for all Gmail IDs

Hope my inputs are useful

Type your email address in input dialog box and use Split operation to Split ur email address…

Use variable.Split(New Char(){"@"c})
The about code will split ur email address like this “abc” “…And check whether the second part of the string is belongs to “gmail” and “yahoo”.

If ur input email ID is belongs to the above list it will go to next step, Otherwise return back ur Input Dialog box.

Poovarasan Guna.

tried didn’t work … can u please pass me practical work flow i m begineer :sweat_smile:

Here we go.
MailIDValidation.xaml (11.6 KB)


Thanks @ddpadil

Hi @ddpadil

How is the UI path way to check if Email is valid or not , it may be for any domain just a format check.