Recently, we have been getting some questions about linking to webforms in messages. In this post, I'll show you how to link to default webforms, how to link to specific webforms (other than the default), and how to add multiple links to webforms of the same type.
Adding Links To Default Webforms
There are actually two ways you can add links to the default for a given type of webform. When creating a webform, you specify a type (Add Contacts, Subscription Confirmation, Manage Preferences, Unsubscribe, Forward to a Friend, or Lookup Contacts) and whether or not you want the specific webform you are creating to be the default. To add a link to the default webform of a specific type, you can use special tags:
%%!addcontact%%- Add Contacts
%%!confirm_url%%- Subscription Confirmation
%%!forward_url%%- Forward to a Friend
%%!lookup%%- Lookup Contacts
An alternative, and preferable solution if you don't want to deal with special tags, is to use the WYSIWYG editor.
To use the WYSIWYG editor to add a link to a default webform:
- Move your cursor to the location in the message where you want the link to go.
- Click Insert Webform Link.
- Choose the type of webform you want to link to.
- Make sure the Default radio button is selected.
- Click Insert.
Adding Links To Specific Webforms
If you want to add links to a specific webform, other than the default, simply follow the steps above for adding links to webforms using the WYSIWYG editor. When you get to step 4, do the following:
- Click the Specific radio button.
- Click Pick.
- Select the specific webform you want to link to.
- Click Select.
- Click Insert.
Adding Links To Multiple Webforms Of The Same Type
If you want to add links to multiple webforms of the same type (for example, two manage preferences webforms) in a single message, you can simply follow the steps for adding links to the default and specific webforms described above. You will notice that when you add links to multiple webforms of the same type, the links will be slightly different. For example, if a message contained links to two manage preferences webforms (one being the default), the URLs would be
%%!manage_url%% (for the default) and
5 represents the id of the specific webform).
An Alternative Design
While there could be any number of reasons you may want to add links to multiple webforms of the same type in a single message, doing so may not be the optimal solution. Before you go about implementing this, consider using dynamic content to display a link to a specific webform based on who is viewing the message. For example, contacts on one list will be shown a link to webform X, while contacts on another list will be shown a link to webform Y. For more information on dynamic content, see this post.
If you have any questions, feel free to leave them in the comments section below.
Technical Writer/eLearning Specialist Editor of Brontoversity