Usage:
This shortcode is used to generate a button within a page or post which, when clicked, will cause a specified action set to run in your Infusionsoft application.
Optionally, if the appropriate parameters are set, this shortcode will also assign or remove tags from the current subscriber/contact, as well as as assign or remove to a followup sequence.
If the current visitor is not logged in or is not an Infusionsoft subscriber, the button will not be displayed.
For the button to display, the shortcode requires an action set ID, a tag ID or a Follow-Up sequence ID.
Alternatively, a contact ID may be passed to enable these actions to run against a contact other than the one currently logged in.
This shortcode does NOT supports conditional branching with [ELSE_actionset].
Shortcode nesting is NOT supported.
Parameters:
actid | a comma separated (CSV) list of action set ID’s you wish to run for the current contact/subscriber. Default: none. |
tagid | a CSV list of tag ID’s you wish to apply to the current contact/subscriber. If one or more tag ID’s passed as a parameter to the shortcode is a negative number, it or they will be removed. The tag ID list can consist of both positive and negative numbers, meaning that tags can be assigned and removed in a single shortcode execution. Default: none. |
fupid | a CSV list of follow-up sequence ID’s you wish to apply to the current contact/subscriber. If one or more follow-up sequence ID’s passed as parameters to the shortcode is a negative number, the member will be removed from the given follow-up sequence. The FUP ID list can consist of both positive and negative numbers, meaning that members can be assigned and removed from a FUP sequence in a single shortcode execution. Default: none. |
autorun | If set to 1, the shortcode will execute without waiting for user input. If not set to 1, 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 (buttontext, buttonimage, redir, aftertext, etc). |
uselink | Determine whether to use a link instead of a button. Default: none. Required: no. |
linktext | the text that should be displayed for the link. Default: “Submit”. Required: no. |
buttontext | the text that should be displayed in the button. Default: “Submit”. Required: no. |
buttonimage | the HTTP/URL path to the image of your choice. Default: “Submit”. Required: no. |
buttonstyle | Any inline style you want to apply to the button image or HTML button. Default: none. Required: no. |
redir | Sends the user to the URL of your choice after processing the action set. A special value can be passed, #reload#, to force a full reload of the current page. Default: none. Required: no. |
redirpopup | determines whether the user will be redirected to a new window after running the action set or not. Only used if the “redir” parameter is used. Default: none. |
aftertext | the text that should be displayed after the request has been processed, if the user hasn’t been redirected. Default: none. |
refresh | specifies whether the contact data should be refreshed after running the shortcode. Default: 1 (yes). |
Example:
[i4w_actionset actid='1,2,3' tagid='55,66,77' buttontext='Click here' buttonimage='imageURL' redir='redirURL' aftertext='Your request has been processed.']
[i4w_actionset actid='1,2,3' tagid='12,34,-56' fupid='78,-90' redir='#reload#' uselink='yes' linktext='Click here']
[i4w_actionset actid='1,2,3' tagid='12,34,-56' fupid='78,-90' redir='#reload#' autorun=1]
[i4w_actionset cid='1234' actid='1,2,3' tagid='12,34,-56' fupid='78,-90' redir='#reload#' autorun=1]
Notes:
(2) The #reload# option should not be used in conjunction with “autorun”, as it will lead to an infinite loop.