2325
Views
9
Comments
Solved
How to add email validation for enter valid email on input
Application Type
Reactive

I want to show validation message like enter valid email address. What condition or expression I need to add on input of email. Remember my data type for email attribute in entity is text.

2026-04-01 11-40-30
Mahesh Manchala
Solution

Hi,

Use the Outsystems "EmailAddressValidate()" function to validate the email.


2023-12-14 09-56-57
Yogesh Javir

Is that function code visible so I can watch that.

2026-04-01 11-40-30
Mahesh Manchala
Solution

Other way is you can try regular expression:

https://stackoverflow.com/questions/46155/how-to-validate-an-email-address-in-javascript

2021-06-09 13-39-18
Agno Silveira
 
MVP
Solution

Hi Yogesh Javir,

I create a example, look in .OML attachment.

Hope this helps.

Regards.


ValidateEmailDemo.oml
2026-04-01 11-40-30
Mahesh Manchala
Solution

Hi,

Use the Outsystems "EmailAddressValidate()" function to validate the email.


2023-12-14 09-56-57
Yogesh Javir

Is that function code visible so I can watch that.

2026-04-01 11-40-30
Mahesh Manchala
Solution

Other way is you can try regular expression:

https://stackoverflow.com/questions/46155/how-to-validate-an-email-address-in-javascript

2021-06-09 13-39-18
Agno Silveira
 
MVP
Solution

Hi Yogesh Javir,

I create a example, look in .OML attachment.

Hope this helps.

Regards.


ValidateEmailDemo.oml
2021-06-09 13-39-18
Agno Silveira
 
MVP

I'm glad I could help!

UserImage.jpg
johan epic

The following JavaScript shows how to validate email address using Regular Expression .

 

function validateEmail(inText){

  const re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;

  var email=document.getElementById(inText).value;

  if(re.test(String(email).toLowerCase()))

  {

    alert("Email is valid  : " + email);

  }

  else

  {

    alert("Email is not valid  :  " + email);

  }

}





UserImage.jpg
Shishir Shetty

For some reason Outsystems thinks abc@abc is a valid email address.

2022-03-28 19-10-08
Donald Cameron

I've been having an issue that the emailaddressvalidate function does not accept, or recognise an apostrophe in the user's e-mail address, e.g. jimo'brien@hotmail.com. Is there a work around for this?

2024-03-21 14-36-50
Sven Bleckwedel

Hi,

> For some reason Outsystems thinks abc@abc is a valid email address 

Hope this helps...

Best Regards

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