76 Replies
Charlie Miller

Angela -

I'm very glad to hear that.  I'll try the publish to CD option just to check it out.  I have been trying it using Articulate Tempshare this afternoon, unfortunately I am not getting any emails.  Do you have any suggestions?  I've followed the steps and my javascript is identical to the one posted above.  I've even searched out some others that are basically identical.  I'm getting worried that this will not work - but am relieved that you have had success.

Thanks!

Angela Carr

Also, I always use a button trigger of Execute JavaScript instead of Send Email.  It seems to work better for me that way.  Here's an example:

var player=GetPlayer();

var email="RIU_Support@recoveryinnovations.org";

var subject="MCC Supplemental to NEC";

var response1 = player.GetVar("Values1");
var response2 = player.GetVar("Values2");
var response3 = player.GetVar("Values3");
var response4 = player.GetVar("Values4");
var response5 = player.GetVar("Values5");
var response6 = player.GetVar("Values6");
var response7 = player.GetVar("Beliefs1");
var response8 = player.GetVar("Beliefs2");
var response9 = player.GetVar("Beliefs3");

var mailto_link='mailto:'+email+'?subject='+subject+'&body='+"How many core values differed between your list and that of the examples?%0d%0A"+response1+
"%0d%0A%0d%0AWhat surprised you about some of the prioritized core values of the examples?%0d%0A"+response2+
"%0d%0A%0d%0AWere there any of your core values, although differing from the examples, still related in some way?%0d%0A"+response3+
"%0d%0A%0d%0AWhat might this exercise teach us about our values the values of the people we serve?%0d%0A"+response4+
"%0d%0A%0d%0AHow might our values get in the way when serving someone who has a completely different set of values?%0d%0A"+response5+
"%0d%0A%0d%0AWhat can we do to not compromise our own values while still fully honoring the values of the people we serve?%0d%0A"+response6+
"%0d%0A%0d%0AWhat are some examples in American history where low expectation beliefs in a group of people perpetuated results that reinforced those low expectations?%0d%0A"+response7+
"%0d%0A%0d%0AHow would you describe the attitudes and actions of behavioral health practitioners who do not hold high expectations that people can recover?%0d0A"+response8+
"%0d%0A%0d%0AWhat are some specific attitudes and actions which would result from having a strong belief high expectations that people can recover from mental illness and/or addictions?%0d%0A"+response9;

win=window.open(mailto_link,'emailWin');

 

 

Charlie Miller

Angela -

Thanks for all the help.  I really do appreciate it.  The JSHint site was great.  Turns out that when I copied and pasted the code from here into Storyline it had issues.  Retyping everything from scratch did the trick.

Unfortunately, after reading through all of this (this thread and others) I was assuming that this would send an email from the the server without opening a local email window.  That is not the case.  This simply opens the user's email program and populates the email.

My problem is that our users who will be viewing our Storyline pages are often located in hospitals and are using walk-up workstations that are not their own.  They don't have access to email on their client side, and the hospital wouldn't allow them to send even if they did.  So having an auto-populated client-side email isn't the solution I was looking for.  Also, doing this would allow users to simply edit the email prior to sending, so theoretically someone could just change the test result score that's being sent back. That would not be good.

So it looks like I'm back to my original solution: Just do part of the site in Storyline, then pass it on to our IT/Web guy and get him to create a form for the tests, have the users complete the tests there, and then send the results via email from the server.

I'm a little bummed by this.  I really (mistakenly, it appears!) thought that this would be possible via Javascript from Storyline.  But, I guess we'll just have to live with the limitations.

Thanks for the input.  I certainly do appreciate it!  I have no doubt I would have wasted another week trying to get this working if it were not for your suggestions and pointing me to JSHint.

-Charlie Miller

Angela Carr

Hi Charlie,

Glad the JSHint helped.  Sorry it still didn't fix your problem.  I have some of the same limitations with some of my employees in the field at hospital sites.  Really the only way I've been able to work around it is to have my people come into one of our offices or do their courses from home.  And you are correct that they would be able to change their score if they wanted.  I'm lucky that I don't have that particular problem.  :)

 

Brian McSkane

Hi all, is it possible to have the email send directly, i.e. without it popping up and the learner having to click the send button? I don't want the learner to be able to change the content of the email. I think this is the relevant code:

win = window.open(mailto_link, 'emailWin');

Thanks, Brian

Theo Lamo

Hi everybody (sorry about my poor english).
Thanks for your advices, this discussion helped me so much. I use Storyline 2 and I want to send an email with score and some texte. Now everything's working, but I'd like to add new lines to my text (it's linear so that's not very cute). Any ideas? I tried <br />, \n, \r\n, etc. But nothing...

Christie Pollick

Others could definitely still stop in with ideas, Theo, so with your reply to this thread, you are now subscribed and will receive notification of any additional posts that are shared! As I noticed you are new to the community, I just wanted to reiterate that Articulate does not support JS modifications in case you were unaware. :)

Ashley Terwilliger

Hi Kerry,

Thanks for reaching out here, and hopefully someone in the community is able to weigh in on this as the Javascript code is not something that the community can weigh in on. You may want to look at sharing your file here so that folks in the community can take a look at your actual code and test it out themselves. 

Julia Beck
Tim Wright

Anyone have a way of sending an email if the user only has web-email and no email client installed? maybe some PHP or Java script that just sends a form to an email address?

Thanks,

Tim

Did anyone get an answer to this? I am trying to figure out if I can send an email to our admin without having to open outlook or something for the person taking the course--basically auto-generating and sending the email through a form or something like that.