Forum Discussion
CindyBartrop-5d
4 years agoCommunity Member
Javascript in Storyline 360
I need to create a trigger that - when the learner clicks the Exit button - will automatically create and send an email that contains free-text survey results. There are two variables that need to ...
WaltHamilton
3 months agoSuper Hero
Delete these two lines:
var cc = Player.GetVar("carbonCopy")
var bcc = Player.GetVar("B_carbonCopy")
Change this line:
var Subject = Player.GetVar("EmailSubject")
to:
var Subject ="self-assessment results"
Change this line:
window.location.href = "mailto:" + SendEmail + "?cc=" + cc + "&bcc=" + bcc + "&subject=" + Subject + "&body=" + sBody;
to:
window.location.href = "mailto:" + SendEmail + "?subject=" +Subject + "&body=" + sBody;
If the JS is otherwise good, those changes will give you what you want.