46
Views
5
Comments
Solved
Custom form validation for mail

I requesting for the custom validation for CC field . I was tried by JS . Not getting. Kindly have look at the attached file and give me solution


By default it was taking " test@test"  mail id as correct input.

Sample accepted email format:
john.doe@example.com
john@doe-example.com
john.doe@example.gov.org 

Mail configuration.oap
2020-07-21 19-28-50
Rajat Agrawal
Champion
Solution

Hi Dinesh,

You can use regex pattern which we have inside the outsystem in-built function such as:

^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$  this you have to pass in pattern.

or you can make your own regex pattern also.


Hope this helps you!!!!

Regards,

Rajat

2019-01-07 16-04-16
Siya
 
MVP
Solution

As per the HTML5 standard (https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address), test@test is a valid email and hence EmailAddressValidate()will return true. 

Created a sample application using both EmailAddressValidate() and Javascript based validation. https://siya.outsystemscloud.com/TestEmailValidation/ValidateEmail

OML attached

TestEmailValidation.oml
2020-07-21 19-28-50
Rajat Agrawal
Champion
Solution

Hi Dinesh,

You can use regex pattern which we have inside the outsystem in-built function such as:

^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$  this you have to pass in pattern.

or you can make your own regex pattern also.


Hope this helps you!!!!

Regards,

Rajat

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Dinesh,

Why do you need a custom validation? Why is EmailAddressValidate not sufficient?

2019-01-07 16-04-16
Siya
 
MVP
Solution

As per the HTML5 standard (https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address), test@test is a valid email and hence EmailAddressValidate()will return true. 

Created a sample application using both EmailAddressValidate() and Javascript based validation. https://siya.outsystemscloud.com/TestEmailValidation/ValidateEmail

OML attached

TestEmailValidation.oml
2026-01-23 11-38-55
Dinesh Murugan
Champion

Thank you @Siya 

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