cancel
Showing results for 
Search instead for 
Did you mean: 

Email validator

prashil
Advisor
Advisor
0 Kudos

Hi,

I am trying to validate, if the email address entered by user is of the following pattern {[a-z][0-9]._}@{[a-z][0-9]._}.[a-z]}

When I try to create a user defined validator with function contains and above pattern, it doesn't work.


It always returns true, that mean even if user enter just name, it return true.


I want to validate this at the form itself not hit backend for validate. Please suggest.


Thanks

Prashil

Accepted Solutions (1)

Accepted Solutions (1)

former_member202465
Contributor
0 Kudos

Hi Prashil,

Sorry - I don't think this is possible

Regardless - there is the Watermark option for inputs, at least to help direct the user a bit (maybe you already knew this):

Thanks,

Udi

Answers (1)

Answers (1)

prashil
Advisor
Advisor
0 Kudos

Thanks Udi,

What is the best way to achieve it.

Can I trigger the RFC, to validate the email format as soon as the field lost the focus?

Best Regards

Prashil Wasnik

former_member202465
Contributor
0 Kudos

Hi Prashil,

Yes - you could define the Action on the control:

Then, on focus lost / Enter press, the SUBMIT Action is triggered. If you use it on the relevant link, it activates the Data Service:

You could still use the Validation feature to prevent going to the backend if some input is missing etc.

The SUBMIT action is not triggered if there are Validation errors. So you can perform all the checks you can on the Client Side. Only then the Data Service is executed.

Thanks,

Udi