Action Network Help & FAQs

Using clips to personalize and insert variables and output conditional content

You can do things like addressing your activists by their first name or displaying a user's zip/postal code or the nearest event near them by using clips.

To access these clips, click the last button in the visual editor, on the right. Then, click on a clip to insert it into your email where your cursor is.

Clips have an easy to understand syntax that lets you customize their appearance to your activists when you send your email. For example, by clicking First Name, the code {{ FirstName | default: "Friend" }} will be added to your email. When the email is sent to your activists, their first name will be substituted for the code. If their first name isn't on file, the default value will be used instead. You can change the default value by entering different text.

Some clips are a little more complex, and their use will be explained in the default clip code that appears after you choose the clip. For instance, to output a custom field value that your activist previously filled out, you choose the "Custom Field Value" clip. Then you edit the code it outputs to add the name of the custom field you'd like to output, as shown in the default code that appears after you click the clip.

Clips can be used in conjunction with the Liquid template language, allowing you perform complex if/then logic, loops, and other conditional content operations. See here for more information about Liquid's syntax and features.

Clips may be used in the email body, subject lines, from lines, and email wrappers.

Note: Make sure to test your clips thoroughly. Emails with broken clips will fail to send.

Have more questions? Submit a request