How can we help?

Update list membership when clicking a link

Overview

You can add or remove a contact from an existing list using a Smarty attribute within an anchor tag.

Add a contact to a list

Use the crdl-assignToList attribute to add a contact to an existing list when they click a link.

Example

<a href="http://example.com" crdl-assignToList="weekly_specials">Add me to the Weekly Specials list.</a>

When this link is clicked in an email, the contact will be added to the weekly_specials list. Once added to the list, any triggers based on being new to the weekly_specials list will be executed.

Remove a contact from a list

Use the crdl-removeFromList attribute to remove a contact from an existing list when they click a link.

Example

<a href="http://example.com" crdl-removeFromList="weekly_specials">Remove me from the Weekly Specials list.</a>

When this link is clicked in an email, the contact will be removed from the weekly_specials list.

Updating list membership when clicking a link only functions with "live" message sends. Links clicked in test message sends will not update list membership.

In the next article, you can learn about updating a contact attribute when clicking a link.

Comments

0 comments

Please sign in to leave a comment.