Forum Discussion
MollyFisher-dd0
4 years agoCommunity Member
Javascript - send text box entry to body text of email
Hi all,
I want to use Javascript so that when a learner clicks "Submit," their email opens with their email address filled in, and the text entry contents to be in the body of the email.
I can o...
MollyFisher-dd0
4 years agoCommunity Member
Replying to myself because I worked out an almost solution:
var player = GetPlayer();
var email=player.GetVar("tomail");
var subject=player.GetVar("subject");
var bodytxt=player.GetVar("Goals");
var start = player.GetVar("body_start");
var mailto_link='mailto:'+email+'?subject='+subject+'&body='+start+bodytxt+"%0d%0A";
win=window.open(mailto_link,'emailWin');
So I can successfully populate the variables! But now my issue is to create a page break after the body_start text.
Related Content
- 10 months ago