4 Replies
Guido Siebers

I used the following code. The variable names i've adjusty for privacy reasons.:

varplayer=GetPlayer();

varattendee_two=player.GetVar("TextEntry2");

var man_1=player.GetVar("TextEntry3");

varPrep_work=player.GetVar("TextEntry4");

varNext_step=player.GetVar("TextEntry5");

var last_customer=player.GetVar("TextEntry6");

varsubjectLine=encodeURIComponent("Results "+attendee_two+" - Concept");

varbody=encodeURIComponent("Result page of: "+attendee_two+"\n\nThe attendees "+attendee_two+" asked the following questions tothe man: \n["+ man_1 +"] \n\nAt the Preperation question they said:\n["+man_1+"] \n\nAt the Diagnostic question they said:\n["+Prep_work+"] \n\nAt the discoverd part question they said:\n["+Next_step+"]\n\nAt the last of the customer question sthey said:\n["+last_customer+"] " );

var link = "mailto:yes@company.com"+"?subject="+subjectLine+"&body="+body;

window.open(link);

Result when pushed on button with the JavaScript trigger:

The text "[Test 1] " in the mail are the variables within the course. The variables are plane text entry's (256 characters)