Question
Capgemini
MY
Last activity: 16 Oct 2018 12:03 EDT
Validate Email Address
Hello team,
I have created a property - Email Address of type - text, UiControl-> pxTextInput/ pxEmail.
I have referred this property in a section and this being reffered in a FlowAction and this being attached Flow. Now on executing a flow, an input screen will be shown. In this screen Email Address should be validate either on blur of control or on click of Submit button.
Tried to check any validation rule for the Email Address property -> Advanced - Edit Input - Validation rule ? but didnot find any rule related to this.
I am working on PRPC 7.2 version
***Updated by Moderator: Marissa to update categories***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Likes (1)
murali jillellamudi -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
There is a Validate rule called pyValidEmailAddress with some sample code.
-
SHAIK MUKRAM vimalchand v Manish kumar
Pegasystems Inc.
US
Hi Ramesh,
You can try @(Pega-IntegrationArchitect:pyServicesUtilities).pyValidateEmailID(.Email) function.
Regards,
Mahesh
Stratosphere Technical Consulting
US
Can you use this at the property level or does the function have to be called from a validate rule?
I always thought Pega had OOTB validation for email address.
Blue Rose Technologies GmbH
BE
Hello,
Please have a look on the below article :
https://collaborate.pega.com/question/email-address-validation
Thanks.
Capgemini Sverige
SE
Hi Naga,
You can create your own edit validate rule .For ex-
if (theValue == null || theValue.trim().equals("")) return false;
String EMAIL_REGEX = "^[\\w-_\\.+]*[\\w-_\\.]\\@([\\w]+\\.)+[\\w]+[\\w]$";
Boolean b = theValue.matches(EMAIL_REGEX);
return b;
-
Hasnaa BIMEZZAGH HIKI Akhil Kuragayala Partha saradhi Somireddi Lucky Shobhnani
Pegasystems Inc.
IN
You can use these two edit validate rule in the property level itself pyValidEmailAddresses, , ValidEmailAddress
You can modify them and put your own logic there if requried.
-
Jaya Tupakula
Tata Consultancy Services
IN
hi can anyone please help me...
i want to validate multiple email ids on single property using edit validate seperated by ;
eg; Proprietary information hidden; Proprietary information hidden; Proprietary information hidden
i want this pattern only..
Tata Consultancy Services
IN
actually i tried with this...bt when m entering ; its showing error
its not accepting ;
Pegasystems Inc.
US
can you share your configuration with screenshots? FYI, Your field should be of type text.
WELLS FARGO
IN
Hi,
Please find the below code
//Java Code
if (theValue == null || theValue.trim().equals("")) return false;
String emailids = "(([A-Za-z0-9_\\-\\.])+\\@([xyz\\.])+\\.([A-Za-z]{2,4}))(((;|,|; | ;| ; | , | ,){1}"
+"([A-Za-z0-9_\\-\\.])+\\@([xyz\\.])+\\.([A-Za-z]{2,4}))*)";
Boolean b = theValue.matches(emailids);
return b;
Tata Consultancy Services
IN
adding ss
-
rajeshwari sonti SADHIKA CHINDAM
Pegasystems Inc.
US
I don't understand why the semicolon is restricted in the textinput field, can you try to enter ; in the plain textinput field to make sure if it is not allowing in all the text field. By the way can you share what error you are facing after entering the ; in your text field?
Because just now i tested the behavior and its working as expected as there is no restriction on text field to block the special characters also.
Tata Consultancy Services
IN
dont knw...as soon as i enter semicolon its showing error...
showing Enter a valid email address
Tata Consultancy Services
IN
i checked with other properties its accepting semicolon.
Pegasystems Inc.
US
May be its because of your validation logic which might have been used in the Edit Validate rule.
Adaps
IN
Below post might help you
https://collaborate.pega.com/question/email-address-validation