I want the user to enter their email address then press a button and have text from one of the "data" boxes to be emailed to them.Can you help me do this?
in the layer i want the user to enter their email address then type some notes to them self then press the button to send the email.
Can you help me with the JavaScript and variables to do this?
this is the Java Geert Helped with
var player = GetPlayer(); var email=player.GetVar("email"); var subject="your subject"; var body_start=player.GetVar("notes"); var mailto_link='mailto:'+email+'?subject='+subject+'&body='+escape(body_start); win=window.open(mailto_link,'emailWin');
Articulate Storyline is designed primarily as an e-learning development tool to be used in conjunction with Articulate Online or your own learning management system (LMS).
I cannot provide support for JavaScript, but I would invite you to check out our JavaScript Best Practices here and hopefully someone in the community will be able to pop in and assist you.
This thread is kinda dated, so not sure that the users here are still subscribed. You are welcome to contact any user directly via the 'Contact Me' option on the user profile if they have enabled the functionality.
5 Replies
Hi Zara
I've created a small example for this, see attached file.
Checkout the variables and the Javascript code
Cheers
Geert
Thank you very much for your help. Let me know if there is anything you are ever looking for.
questions:
in the layer i want the user to enter their email address then type some notes to them self then press the button to send the email.
Can you help me with the JavaScript and variables to do this?
this is the Java Geert Helped with
var player = GetPlayer();
var email=player.GetVar("email");
var subject="your subject";
var body_start=player.GetVar("notes");
var mailto_link='mailto:'+email+'?subject='+subject+'&body='+escape(body_start);
win=window.open(mailto_link,'emailWin');
Hi, I'm using Storyline 2 and would like to use this email feature also. I don't know anything about JavaScript.
Hi Celine!
Articulate Storyline is designed primarily as an e-learning development tool to be used in conjunction with Articulate Online or your own learning management system (LMS).
I cannot provide support for JavaScript, but I would invite you to check out our JavaScript Best Practices here and hopefully someone in the community will be able to pop in and assist you.
This thread is kinda dated, so not sure that the users here are still subscribed. You are welcome to contact any user directly via the 'Contact Me' option on the user profile if they have enabled the functionality.
This discussion is closed. You can start a new discussion or contact Articulate Support.