Input text data post to email address

Jun 24, 2014

hi folks,

I hope that you can help me with my dilemma. I have a screen which has 2 input text boxes.

 In an ideal world I would like it when the user presses the Complete button, it opens an email link with both of the text entries within the main email window. At the moment, it is set-up so that when the user presses "Complete" a "Print" button appears and then a "Next" button once the "Print" button has benn pressed. I have done this through the layers facility.

I found some script on a previous E-Learning Heroes messageboard:

var email="your_email@domain.com";
var subject="subject line";
 
var player = GetPlayer();
var body_start=new Array();
body_start[0]=player.GetVar("TextEntry4");
body_start[1]=player.GetVar("TextEntry2");
 
body_text = body_start[0] + "%0D%0A%0D%0A" + body_start[1];
 
var mailto_link='mailto:'+email+'?subject='+subject

+'&body='+body_text;
win=window.open(mailto_link,'emailWin');


The email opens up but no text entries appear even though I have variable names added to the input text boxes. Any help would be appreciated.

Thanks

Andrew

Be the first to reply

This discussion is closed. You can start a new discussion or contact Articulate Support.