Email results of calculation to user?

Feb 05, 2015

Hi everyone!

I'm working on a course that involves a user calculation—similar to the examples Jeanette demonstrates here.

After the calculation, I'm wondering if there is a way for the user to email themselves the results? I'm not seeing anything in the triggers that would enable this, and I'm a little scared the answer is going to be to develop a custom javascript.

Any thoughts?

Thank you,

Laura

 

 

 

 

6 Replies
Jackson Hamner

emailing with JS is pretty easy. Heres a similar example: https://community.articulate.com/discussions/articulate-storyline/email-quiz-results-using-java-script

Your JavaScript will look something like this

var player = GetPlayer();
var email=player.GetVar("userEmail");
var subject="Your Calculation";
var body_text=player.GetVar("calculatedVariable");
var mailto_link='mailto:'+email+'?subject='+subject+'&body='+body_text;
win=window.open(mailto_link,"emailWin");

You'll need to have the user enter their email and save that to a variable, I called it 'userEmail' but you can call it whatever you want.

The 'Subject' variable sets the subject of the email, that can be changed to whatever you want the subject to say.

the 'calculatedVariable' is whatever you want to send to the user.

 

Hope this helps!

Jodi Albarano

I'm trying to do somewhat of the same thing through JS.  I have the user entering a slide title, his/her name and some feedback about the slide when they click a basic link titled "Feedback" on the slide. It opens another layer "Feedback" where the information box comes up for them to enter the info. Then I used most of the same code as shown above to email it to myself (The developer). I put it into our LMS, run the course and complete the feedback page and hit submit. However, the email won't go through. I don't know if it's due to the LMS or if it's a Storyline thing. How does Storyline handle email clients? I need it to open Outlook. Any suggestions would be greatly appreciated! 

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