SOLVED

Marketo Forms

Go to solution
Tracy_Boesken
Level 4

Marketo Forms

Is there a way to set restrictions (by email address) on who can complete your Form?

Thanks,

--Tracy

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Marketo Forms

Certainly. But bear in mind that a concerted attacker can always get around any form validation (since it relies on JavaScript, and they can bypass JS easily). It's essentially a good faith reminder, not a full technical restriction.

 

You can use the FormsPlus::EmailPattern JS library (copy it to your Design Studio) and the demo code shown here:

 

MktoForms2 :: FormsPlus-EmailPattern [simple demo] 

 

 

View solution in original post

7 REPLIES 7
SanfordWhiteman
Level 10 - Community Moderator

Re: Marketo Forms

Certainly. But bear in mind that a concerted attacker can always get around any form validation (since it relies on JavaScript, and they can bypass JS easily). It's essentially a good faith reminder, not a full technical restriction.

 

You can use the FormsPlus::EmailPattern JS library (copy it to your Design Studio) and the demo code shown here:

 

MktoForms2 :: FormsPlus-EmailPattern [simple demo] 

 

 

Tracy_Boesken
Level 4

Re: Marketo Forms

Thank you for replying Sandford.

The goal is to send an email (containing a Marketo Landing Page w/form) to a group of invitees and to make sure they do not forward it to someone else. So how do I adapt what you suggested using a smart list of email addresses?

SanfordWhiteman
Level 10 - Community Moderator

Re: Marketo Forms

By Smart List I assume you mean an exported SL, right? B/c you can't do a SL lookup from the form itself.

Tracy_Boesken
Level 4

Re: Marketo Forms

Actually just a list of 55 email addresses.

SanfordWhiteman
Level 10 - Community Moderator

Re: Marketo Forms

You can put whole email addresses instead of domains — the code recognizes the address-like structure (mailbox@domain) and does a full match in that case.

 

[
      "sandy@example.com",
      "blandy@example.net",
      "brandy@example.org"
]

 

 

(In fact the code can do something else that's extremely cool and may blow people's minds when I finally add it to the Products blog, but for your simple purposes you would use either right-hand-side matching (info@) or domain-only matching (example.com) or whole email address matching (info@example.com).

HelloLisa
Level 1

Re: Marketo Forms

Hi Sanford, 

Would this work to include Company name as well?

SanfordWhiteman
Level 10 - Community Moderator

Re: Marketo Forms

It's for Email fields.