Email Trigger - Format selected choices in a bulleted list | XM Community
Skip to main content

I'm creating an event sign up form. I have an email trigger that will email the respondent a confirmation email and want to include a list of the events they signed up for. The piped text for the survey question will allow me to display the respondent's selected choices, but they're in a comma-separated line of text when I'd rather show the selected choices in a bulleted list (or at least each choice on a different line). Is this possible?

In a question at the end of the survey, pipe the selected choices into JavaScript and reformat them into a string that includes the html for a bulleted list:

  • choice 1
  • choice 2
  • ...

Then save that string to an embedded data variable. Pipe the embedded data variable into your email trigger.
Alternatively, you could use a web service instead of JavaScript to create the embedded variable.


Leave a Reply