connecting a few variables and texts in to one variable

Hi,

In my course the learner has to fill in a few text fields.

at the end I wish to send him all the data via mail.

I know to use the java script to send an email, but I know to do this only with one variable.

is there a way to create a variable that will contain all data from the text entry fields and extra text?

hope I was clear.

thanks

 

3 Replies
Michelle Weisbeker

thanks a lot.

Here we found a way in Java script to set the storyline variables and making them Java script and than joining it all together. some of the text is in Hebrew but I think you can understand what we did:

"

var player=GetPlayer();

var vEmail=player.GetVar("UserMail");
var vName=player.GetVar("Username");
var vMain=player.GetVar("MainTopic");
var vSubtopic=player.GetVar("SubTopic");
var vSubtopic2=player.GetVar("SubTopic2");
var vPrework=player.GetVar("PreWork");
var vManagerhelp=player.GetVar("ManagerHelp");
var vWorkwith=player.GetVar("WorkWith");
var vTime=player.GetVar("TimeToDo");
var vStatus=player.GetVar("Status");
var vMonth=player.GetVar("Month");
var subject="מסלול - פיתוח מנהלים";
var body_text="שלום "+vName+","+"%0D%0A%0D%0A"+"התחום בו בחרת להתמקד במסלול - פיתוח מנהלים הוא: "+vMain+"."+"%0D%0A%0D%0A"+"בנושאים הבאים: "+vSubtopic+","+vSubtopic2+"%0D%0A%0D%0A"+"בטרם ההתנסות עליך "+vPrework+"%0D%0A%0D%0A"+"המנהל שלך יכול לעזור ב: "+vManagerhelp+"%0D%0A%0D%0A"+"ההתנסות תבוצע בשיתוף עם "+vWorkwith+", במהלך "+vTime+"."+"%0D%0A%0D%0A"+"פגישת סטטוס מתוכננת ל-"+vStatus+" חודש "+vMonth+"."+"%0D%0A%0D%0A"+"בהצלחה!";
var mailto_link='mailto:'+vEmail+'?subject='+subject

"

the funny text "%0D%0A%0D%0A" is a space...