Skip to main content
Level 2
Sep 1, 2022 9:49 AM UTC
Solved

Velocity script for putting condition on email forward

Hello,

I am creating a live event in Marketo, this is a vip event and we want to put forward to friend token in Marketo email but we want only certain people get forwards, since this is a vip live event, we dont want alot of forwards. Can we do this using velocity script in Marketo or by any other feature?

 

 

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Sep 1, 2022 2:34 PM UTC

You can put a filter on the Forward to Friend form that prevents people from entering addresses unless they match a certain pattern.

 

But (I think this is what Michael means) you can never stop people from forwarding the email using the button in their email app.

4 replies

Michael_Florin-2
Level 10
Sep 1, 2022 11:56 AM UTC

No. You can't prevent an email from being forwarded.

Translate
SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Sep 1, 2022 2:34 PM UTC

You can put a filter on the Forward to Friend form that prevents people from entering addresses unless they match a certain pattern.

 

But (I think this is what Michael means) you can never stop people from forwarding the email using the button in their email app.

Translate
PMarketoAuthor
Level 2
Sep 2, 2022 7:23 AM UTC

Thanks for providing the solution 🙂

Can you please guide how to put filter in Marketo forward to friend form?

 

Thanks!

Translate
SanfordWhiteman
User Group Leader
User Group Leader
Sep 2, 2022 9:56 PM UTC

You can follow the framework at Building a better Forward-to-Friend with Velocity and add an onClick listener to the Send button. Check the current email value against a regex pattern/list of allowed domains, reject the form submit (meaning “stop the click event“ in this case, since Marketo doesn’t use a real form) if it doesn’t match.

Translate