function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
anjisalesforce@gmail.comanjisalesforce@gmail.com 

How to validate email in visual force?

Hi all,

 

"I want to need how to validate email in visual force pages?"

 

I was taken one "inputText" that is email format.....

whenever i am click the "commandButton". it will check inputText  is  email format or not ........

 

Could u please send me with examples....

 

 

Thank you,

Anjireddy.

Shashikant SharmaShashikant Sharma

Use this in java script onclick of button and return false if not in pattern.

 

REGEX(Int_Email__c,"\\w @[a-zA-Z_] ?\\.[a-zA-Z]{2,6}")

 

Let me know if any issues in it.

Olivia ThomasOlivia Thomas
There is an App which provides the solution to validate email address.360 Verify the email App provides instant if the email is invalid. Have a look at the link - https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000DpPL8EAN or more details go to – support@360degreeapps.com