Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Email Scripted Validator

CHILLAMCHARLA VARUN
Contributor
February 11, 2020

Hi,

We are looking for a script that will set a text field only to allow specific email id which should be <username>@gmail.com, the script should not allow <username>@outlook.com.

thanks.

1 answer

1 accepted

0 votes
Answer accepted
Humberto Gomes
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 12, 2020

Hi,

You will need a regex app.

see this one:

https://marketplace.atlassian.com/apps/1211043/unique-regex-custom-field?hosting=server&tab=overview

 

it's free.

 

 

Try this one:

(\W|^)[\w.+\-]*@gmail\.com(\W|$)

 

Probabli will miss if you have gmail before '@, like  aaagmail.com@gmail.com

 

Will work most of the use cases

CHILLAMCHARLA VARUN
Contributor
February 12, 2020

Thank you 

CHILLAMCHARLA VARUN
Contributor
February 13, 2020

@Humberto Gomes am looking for complete Scripted validator code by using workflow validator or behaviour also is fine.

Suggest an answer

Log in or Sign up to answer