Forum Discussion
Concatenate slide numbers into variable
For anyone who needs this, I have learned how to add line breaks to the body of JS output when composing an email. The string '%0D%0A' acts as a line break. So my code looks something like this:
var p = GetPlayer()
var progress = p.GetVar("progress")
var reviewed = p.GetVar("reviewed")
var answers = p.GetVar("answers")
var times = p.GetVar("times")
var feedback = p.GetVar("TextEntry")
var br = '%0D%0A'
var body = feedback + br + br
var body = body + "PROGRESS " + progress + br
var body = body + "REVIEWED " + reviewed + br
var body = body + "ANSWERS " + answers + br
var body = body + "TIMES " + times + br
var email="me@email.com";
var subject="Sent from Storyline";
var mailto_link='mailto:'+email+'?subject='+subject+'&body='+body;
win=window.open(mailto_link,'emailWin');