Parsing %Results.ScorePoints% into the body of an email
Apr 26, 2021
var player = GetPlayer();
var email = player.GetVar("supemail")
var emailTwo = "firstname.lastname@example.org"
var subject = 'Testing Testing Assessment';
var emailBody = 'Congratulations on completing the Testing Testing Assessment:' + '\n' + '\n' + 'Your score is: ' ;
var mailto_link = 'mailto:' + email + ';' + emailTwo + '?subject=' + subject + '&body=' + encodeURIComponent(emailBody);
win = window.open(mailto_link, 'emailWin');
I have tried a variety of ways to get the score in but can't.