Usage:

This shortcode is used to automatically assign or remove an ActiveCampaign Contact to/from specific lists or to generate a link/button within a page or post which, when clicked, will assign or remove the Contact to/from the lists in your ActiveCampaign application.

This shortcode does NOT supports conditional branching with [ELSE_list].
Shortcode nesting is NOT supported.

Parameters:

cidThe ActiveCampaign contact ID you want to assign tags or remove tags.
Default: the current logged in ActiveCampaign contact .
Required: no. If not given, the logged in user’s ActiveCampaign contact ID will be used.
subscribeOne or more list ID’s taken from ActiveCampaign you wish to assign to this contact. If more than one is entered, please separate with commas.
Default: none.
Required: yes, if list(s) to remove are not passed.
unsubscribeOne or more list ID’s or tag names taken from ActiveCampaign you wish to remove from this contact. If more than one is entered, please separate with commas.
Default: none.
Required: yes, if list(s) to assign are not passed.
autorunIf set to yes, the shortcode will execute without waiting for user input. If not set to yes, it will generate a form and a submit button and wait for user input. If the autorun option is used, the other parameters will be ignored (link_text, link_style, button_text, button_image, button_style, redirect, redirect_popup, aftertext).
Default: no.
Required: no.
link_textThe text that should be displayed for the link.
Default: “Click here to submit”
Required: no.
link_idCSS id for the generated link.
Default: none.
Required: no.
link_classCSS class for the generated link.
Default: none.
Required: no.
link_styleAny inline style you want to apply to the link.
Default: none.
Required: no.
button_textThe text that should be displayed in the button.
Default: none .
Required: no.
button_imageThe HTTP/URL path to the image of your choice.
Default: none
Required: yes, if “buttontext” is not used..
button_idCSS id for the generated button.
Default: none.
Required: no.
button_classCSS class for the generated button.
Default: none.
Required: no.
button_styleAny inline style you want to apply to the button image or HTML button.
Default: none.
Required: no.
redirectSends the user to the URL of your choice after assigning/removing the tags. A special value can be passed, #reload#, to force a full reload of the current page.
Default: none .
Required: no.
redirect_popupDetermines whether the user will be redirected to a new window after clicking the link or button or not. Only used if the “redirect” parameter is used. Set to ‘yes’ to activate this option.
Default: none.
Required: no.
unsubscribe_reasonUnsubscribe reason for this request.
Default: “Contact unsubscribed on site http://yoursite.com” (the site URL will be the site on which they unsubscribed)
Required: no.
after_textThe text that should be displayed after the request has been processed, if the user hasn’t been redirected.
Default: none.
Required: no.

Example:

[mbr_list subscribe='1,5,7' unsubscribe='10,12' button_text='Click here' button_image='imageURL' redirect='redirURL' after_text='Your request has been processed.']
[mbr_list subscribe='8,9' redirect='#reload#' link_text='Click here']
[mbr_list autorun='yes' subscribe='1,5,6' unsubscribe='7,8']
[mbr_list cid='1234' subscribe='1,3,5' redirect='#reload#']

API:

There is currently no ActiveMember360 API function equivalent for this shortcode.

Note:

The #reload# value for the “redirect” parameter will ensure that the page is reloaded, forcing any other shortcodes on the page to resolve based on the latest changes that may have been introduced by the tags.