Forum Discussion
User notes that they can print and email
Hi all. I built a course earlier this year that contains a "notes" function to allow users to take a moment to reflect and type their thoughts on certain questions. This is used in place of a typical multiple response/choice type question. Thought I'd share it here with you!
Here are the files:
Screenr Part 1: Demonstration - https://player.vimeo.com/video/204928444
Screenr Part 2: How It Was Built - https://player.vimeo.com/video/204928450
Storyline Source: https://bit.ly/3Kd96as
Published Output: https://bit.ly/3Z0hj5X
Cheers!
Stephanie
- SabrinaHuyettCommunity Member
First of all, thank you thank you for this elegant solution! I appreciate you taking the time to teach us.
Second, could I get your help on a problem? When I write notes that are lengthy, they become TINY on both the compare your response page and on the print your response page. If my notes are one line long, they stay in the front size I selected. As soon as they go onto the second line, they become infinitesimal, despite the text box being plenty large enough to accommodate them. Thoughts? Help!
- BastienMdardCommunity Member
Hello,
I am trying to implement Stephanie's javascript method for the learner to be able to print and send his/her notes by email, but I am having some difficulties.
Basically, the print option alone works well, but once I try to add a trigger for the email button, none of them work. It seems to interfere at some level. And I didn't manage to have the email trigger work alone.
I am really not a coding expert (like many of us!), but if someone could help I would be most grateful!!
I am attaching two files:
- javascript_print_OK : the print javascript executes well
- javascript_print_notOK : I added the javascript for email, but neither the print nor the email javascript execute.
Thank you !!
Bastien
- CharoldeRidderCommunity Member
Hi Bastien,
Wondered if you already have a solution for this problem? I'm having the same issue here.
- DougBrownCommunity Member
Hi Bastien
I took a quick look at the javascript you have in the email version.
You have a large amount of corrupt code after the var mailto_link='mailto:'+email+'?subject='+subject+'&body= *************section.
I'm not sure what the code is as it shows spaces BUT it is certainly NOT spaces. You may need a hex viewer to interpret.
I suggest that you remove all the spaces after
var mailto_link='mailto:'+email+'?subject='+subject+'&body=*************
and after the code
'+"Mes Actions“*******************
and again after the code
+exercisenotes1+"Mes actions“*******************
Looks like a cut and paste entry of the javascript has introduced other non viewable characters
Regards
Doug
- BastienMdardCommunity Member
Hi Charol,
No, I haven't :(
I posted my request on different page too, but no reply yet.
I'll let you know if I find the solution.
Bastien
- BastienMdardCommunity Member
Hi Doug,
Thank you so much for taking the time to look at the file in details. Someone had told me it was probably an issue with copy and paste, but as I am new to this, I didn't know where to look for a potential error.
I'll try that and let you know.
Thanks a million.
Bastien
- DougBrownCommunity Member
Hi Bastien
Try using Sublime text to view javascript files after you publish them.
Sublime text has a free version, and is very easy to use
The user.js will be in the story content folder (after publishing).
This is where all the user javascript is located
Regards
Doug
- KathyLee2Community Member
Hi Everyone,
First, this is amazing! This is exactly what we need in our course to make it interactive and reflective for the learner.
Now, my question: I've seen two other people say that nothing happens when they click the icons. Anyone have any idea why?
I published Stephanie's source file and put it on SCORMCloud, the buttons work.
I imported the screens onto the template of my file in SL2, put it on SCORMCloud, and it works.
But when I create the triggers myself and copy-paste the code (making adjustments to only the title of sections, etc), NOTHING HAPPENS!
Any help or insight is greatly appreciated!
UPDATE: My course works now - I just copy-pasted the code and modified them for my course again. I still don't know why it didn't work before, so am very interested if anyone has any ideas of why it didn't work the first time I copy-pasted it (see the code attached). Thanks!
- tinCCommunity Member
Hi Everyone,
I just found this great resource yesterday and I cannot get it to work,
What I want is that users can take notes throughout the course, so I created a My Notes in the player in the top right hand corner and when users click it will appear as a light box slide.
Now I have made a separate scene which I call mynotes and put in the notepad, the email field as a text box and also the email and print icons.
I created two text variables, 1. coursenotes 2. coursedate (systemdate)
I tried to clean up the JS that stepahnie had and replaced it where appropriate and published it to web and testing on IE locally on my computer but its not working.
I am sure the print option is also not working, but I want to get the email option working first.
- PhilMayorSuper Hero
Try testing online javascript should really be tested in the intended environment. I normally but a javascript alert on timeline start of the first slide when testing as if this does not show then you know the javascript is not working.
- NickWilson1Community Member
Having utilized a variation of this script in a course, we have found that the e-mail function breaks down in IE 11 due to a character limit on mailto: links. Unfortunately, for the course we are creating, we need to find an alternate solution that will allow the e-mail notes functionality but without the character limit. Can anyone suggest an alternative that has been successful? Anyone have experience with server-side scripting?
- JillyDutton1Community Member
Hi all,
I stumbled on this thread last week and found myself totally inspired to give Javascript a go using Stephanie's very generous notes... then I realised I'm a newbie to coding and am well out of my depth!
I was wanting to use Stephanie's code for sending an email that includes text inputs pulled from Storyline into the message body. I fear I have mangled the code entirely, but am hopeful I have merely managed to name things incorrectly and it's a quick fix.
If anyone has the time or inclination to have a look over my code I'd appreciate it... I have attached an outline that shows what I have so far and what I hope for it to be.
Thanks in advance!
Jilly
- DuaneDickeyCommunity Member
Matthew Bibby,
This is fantastic! Thank you for taking the time to write this code, and for being willing to share it with us.
I'm not that proficient at writing code, but I appreciate looking at other's work and admire their creativity.
- JohnMayfieldCommunity Member
I know your post is a couple of years old, but WOW, this is AWESOME! Thank you so much!