Email text entry

Feb 07, 2013

Hello All,

For my course I would like to trigger a button which sends me an e-mail with all the text entry's in the course.

Does someone got a solution for this case?

Thanks in advance!

Regards


Guido

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)

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