Forum Discussion
How to Format the Body of an Email Using Java Script?
Try this thread:
https://community.articulate.com/discussions/articulate-storyline/email-trigger-6b23ebd8-5867-45a1-878f-a14f25c9f66a#reply-670722
Or, if you just want simple spaces, try this:var body_start=player.GetVar("Risk1and2")+" " +player.GetVar("Risk3and4")
- PaulDeHorn4 years agoCommunity Member
Thank you Walt, I appreciate the reply. I'll test it out.
- PaulDeHorn4 years agoCommunity Member
Hello Walt,
Well, your suggestion on adding spaces works, but I can't get line breaks to work. I learned that "\n" is a line break in JavaScript, but I can't get this to work. I tried using +\n and, +"\n", and just \n in between each player.GetVar just like the +" " but when I do I break the JavaScript and the email doesn't launch. I realize something must be wrong with the syntax I'm using?
If I wanted to it to look like this in the body of the email, do you know what the syntax should be for the JavaScript?
Risk1&2
Risk3&4
Thanks, - Paul
Related Content
- 10 months ago
- 3 months ago
- 1 year ago
- 9 months ago