Forward to a Friend Forms

Using the below documentation you can create a forward to a friend form, for use with one email address or multiple. By default this will forward the email you have just received.

On this page:

Form Fields

As with Dynamic Forms, a Forward to a Friend form uses many Static functions. However there are some that are specific, identified below.

However, for us to know that the form is a 'Forward to a Friend' you must use:

Copy
<input type="hidden" name="_taf" value="1">

Record the details of the 'Friend'

These fields record the details of the friend the email is forwarded to. They can use any table field from a core or data table, but email is required.

Copy
<input type="text" name="1.firstname">
<input type="text" name="1.surname">
<input type="text" name="email">

Multiple Addresses

If you wish to forward the email to multiple addresses you must prefix the input fields with an "@".

Copy
<input type="text" name="@1.firstname">
<input type="text" name="@1.surname">
<input type="text" name="@email">
<input type="text" name="@1.firstname">
<input type="text" name="@1.surname">
<input type="text" name="@email">

Force a Campaign to be Forwarded

By default this will forward the email you have just received. If you would like to forward a different email, rather than the original, use the following to override the action:

Copy
<input type="hidden" name="_taf_campaign_id" value="417">
<input type="hidden" name="_taf_launch_id" value="657">

Receive Email Confirmation of Forwarding

If you want an email to show confirmation of your forwarded email you can use the following to set this up. This will send a copy of the email specified to the person who submitted the forward to a friend form:

Copy
<input type="hidden" name="_send_copy" value="1">
<input type="hidden" name="_copy_campaign_id" value="417">
<input type="hidden" name="_copy_launch_id" value="657">

Code for Forwarded Email

You will need to use template directives to enable the Forward to a Friend functionality. The following example shows how this will look in both source code and when displayed in an email client.

Source Code

Note: contact.field can use any table field from a core or data table.

Copy
[*IF vars.taf*]
This email was forwarded to you by [*vars.taf.contact.field('1.firstname')*] [*vars.taf.contact.field('1.surname')*] ([*vars.taf.contact.field('email')*]) along with the following message:
[* vars.taf.message | html *]
[*END*]

Email Client

Copy
This email was forwarded to you by Jacob Plant (jacob.plant@example.com) along with the following message:
Hey there! Thought you might be interested in this.

Link to Form

To link the form to an email you can use:

Copy
[* link.prefill(1,'Forward this to a friend!') *]