I realise that Storyline doesn't report Scorm results when used in an iPad, but I thought I could just email the percentage or that fact that they completed to an email address, and 'Complete' them manually in the LMS.
Unlike Quizmaker, there doesn't seem to be an option for this. Anyone found a way around this?
Thanks for the link! I am using Articulate Tempshare to do some very simple testing of this to try and get it working. Unfortunately, no email so far...
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.
One problem I usually have is my fat finger syndrome. :) I don't think I've ever written any javascript without at least one error, so I run them all through this verification site just to make sure I've got clean code before I try to troubleshoot anything else. http://jshint.com/
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;
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, talk to James at Elearning Enhanced - he can organise javascript
for you that will send the score to a database. I got a quote from him
myself for that very thing.
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. :)
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:
I've seen users utilize the built in trigger, as you can see here, but I'm not familiar enough with JavaScript to assist with your question. Hopefully someone in the community will be able to assist.
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...
Hi, Theo -- Thanks for reaching out, and as mentioned previously, JavaScript is not something for which we can provide support, so we'll need to defer to your fellow community members to assist you further. :)
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. :)
I have tried it and it will not work on my webpage. any suggestions to get the email to work for results. I tried the code above in the java script using html5 still no luck.
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.
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.
I'm not sure if anyone found a workaround for this. I know this conversation is a bit dated, so you are certainly welcome to reach out to the user directly via the 'Contact Me' option on the user profile if you do not hear back soon.
Thank you! Where would this Java Script get added to? I assume you'd need to open the story file and add somewhere? I have Notepad++ and a very limited understanding of how coding works.
76 Replies
It does work properly. If you publish to CD you can test without loading it to the server or an LMS.
Ashley -
Thanks for the link! I am using Articulate Tempshare to do some very simple testing of this to try and get it working. Unfortunately, no email so far...
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!
I've tried the Publish to CD option with the same results - no email delivered.
One problem I usually have is my fat finger syndrome. :) I don't think I've ever written any javascript without at least one error, so I run them all through this verification site just to make sure I've got clean code before I try to troubleshoot anything else. http://jshint.com/
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');
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
Charlie, talk to James at Elearning Enhanced - he can organise javascript
for you that will send the score to a database. I got a quote from him
myself for that very thing.
Jacinta Penn
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. :)
Jamie-
I just ran across this very old, but highly useful post in the Articulate discussion. Could you elaborate on how to set up a pre-populated email?
Thanks,
Barb
Oops! Sorry! Disregard. This post was misplaced.
Thanks for letting us know Barb. I do not see where you posted this somewhere else, so I hope you were able to get this sorted. :)
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
Hi Brian!
I've seen users utilize the built in trigger, as you can see here, but I'm not familiar enough with JavaScript to assist with your question. Hopefully someone in the community will be able to assist.
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...
Hi, Theo -- Thanks for reaching out, and as mentioned previously, JavaScript is not something for which we can provide support, so we'll need to defer to your fellow community members to assist you further. :)
Thanks Christie, I hoped someone already had the same obstacle on Storyline ;)
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. :)
I have tried it and it will not work on my webpage. any suggestions to get the email to work for results. I tried the code above in the java script using html5 still no luck.
I think my code might have been put in wrong. Any help would be nice.
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.
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.
Hi Julia,
I'm not sure if anyone found a workaround for this. I know this conversation is a bit dated, so you are certainly welcome to reach out to the user directly via the 'Contact Me' option on the user profile if you do not hear back soon.
I am looking for the same answer. Thanks!
Thank you! Where would this Java Script get added to? I assume you'd need to open the story file and add somewhere? I have Notepad++ and a very limited understanding of how coding works.
This discussion is closed. You can start a new discussion or contact Articulate Support.