Apply Salesforce email validation logic to Marketo forms

Kim_Wieczner
Level 2

Apply Salesforce email validation logic to Marketo forms

We have experienced a number of lead create errors from Marketo to Salesforce because of someone filling out their email address missing ".com" -- i.e. jsmith@gmail

The Marketo form submits but Salesforce blocks the lead create, since Marketo only validates on the "@".

Does anyone have a recommendation for applying the same validation logic Salesforce uses to the Marketo form fill?

This also seems like a missing feature...given that Salesforce is already doing this.

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: Apply Salesforce email validation logic to Marketo forms

Please read this blog post: No, sandy@gmail isn’t an “incomplete” e-mail address!

As you'll see, validation that bluntly considers any single-label domain to be invalid is fundamentally wrong.

In the blog post, there's code to add a requirement for multiple-label domains, but you will potentially be rejecting certain rare cases.