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
237 Replies
- onEnterFrameCommunity Member
Would it be possible to share a link to it with us?
- JacobVisovattiCommunity Member
Hi Stephanie and others. I love this design!
I would like to provide users a workaround in case their browser's security settings prevent the Javascript from executing. I hoped to compile all the notes in a scrolling panel so that users could copy and paste, but now I realize that player text is not select-able.
Is there a way to enable copy and paste for on-screen content?
- JacobVisovattiCommunity Member
Hi Matthew - thanks for replying on a two-year-old thread!
My concern about browser security settings is entirely pre-emptive. I haven't finished building the functionality in my project yet, actually. I am trying to be robust in design, but I guess there's the Knuth quote - "premature optimization is the root of all evil."
- onEnterFrameCommunity Member
If the browser security settings are tight enough to keep this from running
(from a server) then most likely the course won't run.
- NiteshJainCommunity Member
Awesome post Stephanie... Cheers!
- DaveGalvinCommunity Member
Hi all,
This method for capturing notes during a course and emailing them, has really helped me in a few of my recent modules, thank you Stephanie!
I do have a question:
Instead of typing the target email address in a text field, and then executing the JavaScript, is there a way to use the email trigger in a button for instance, where you can add the email address upfront? In the course I am working on now, I have been asked if there is a way to do this, where the learner doesn't have to type an email address in a text box. If I can pre-populate that address, that would be great.
Thanks in advance
Regards
David
- DaveGalvinCommunity Member
Hi Matthew,
Thanks for the information. The solution in your tutorial looks really good. In my module, I currently have three text box variables, each one asking a question for specific feedback from the course. Can I combine these so that they feature in one email, or do I have to create three separate emails?
Regards
David
- DaveGalvinCommunity Member
Hi Matthew,
That is great. I adjusted the script as below and all works as hoped.
var player = GetPlayer();
var email = 'my.email@address.com'
var fbk = player.GetVar('Feedback');
var fbk2 = player.GetVar('Feedback2');
var fbk3 = player.GetVar('Feedback3');
var subject = 'Course Feedback';
var emailBody = 'Here is some feedback:' + '\n' + fbk + '\n' + fbk2 + '\n' + fbk3;
var mailto_link = 'mailto:' + email + '?subject=' + subject + '&body=' + encodeURIComponent(emailBody);
win = window.open(mailto_link, 'emailWin');Two quick questions if I may:
- Will this work in a LMS?
- Is there a way of stopping a blank tab opening at the same time as the email?
Thanks again Matthew!
Regards
David
- DaveGalvinCommunity Member
Hi Matthew,
That's great. I really appreciate the help you have given me.
Many thanks
Dave
- BrianSellors-4aCommunity Member
Hey, this is amazing, but I am having trouble making it work. I am not sure exactly what needs to change in the java script. I am trying to make the email function work. This is what I put in (maybe i changed things i shouldn't have?). Any help would be great:
var player = GetPlayer();
var useremail=player.GetVar("email");
var subject="Trois type de reportage journalistic";
var quoi1=player.GetVar("TextEntry283");
var qui1=player.GetVar("TextEntry268");
var quand1=player.GetVar("Textentry270");var mailto_link='mailto:'+useremail+'?subject='+subject+'&body=
'+"Notes Description de faits - Quoi:%0d%0A“
+quoi1+"%0d%0A%0d%0A
Notes Description de faits - Qui:%0d%0A“
+qui1+"%0d%0A%0d%0A
Notes Description de faits - Quand:%0d%0A“
+quand1+"%0d%0A%0d%0Awin=window.open(mailto_link,'emailWin');
- onEnterFrameCommunity Member
It looks like some of your quotes are not closed. And there is a mix of different quote types: ',",and “
I am not sure if it is the formating of the post... but typicly you shouldn't break strings into multiple lines. If you do you will need to add a slash (\) at the end of each line.
This might work (untested but formatted better). Note that I just made the mail_to_link all one line and replaced the various quotes.
var player = GetPlayer();
var useremail=player.GetVar("email");
var subject="Trois type de reportage journalistic";
var quoi1=player.GetVar("TextEntry283");
var qui1=player.GetVar("TextEntry268");
var quand1=player.GetVar("Textentry270");
var mailto_link="mailto:"+useremail+"?subject="+subject+"&body=Notes Description de faits - Quoi:%0d%0A"+quoi1+"%0d%0A%0d%0A Notes Description de faits - Qui:%0d%0A"+qui1+"%0d%0A%0d%0A Notes Description de faits - Quand:%0d%0A"+quand1+"%0d%0A%0d%0A"
win=window.open(mailto_link,"emailWin");- BrianSellors-4aCommunity Member
Hey James thank you so much for your response. I ended up using the following code and it seemed to work (I will also test the one you re-formatted for me thanks you for taking the time to do that [😊] ):
var player = GetPlayer();
var useremail=player.GetVar("TextEntry293");
var subject="Trois type de reportage journalistique";
var usernotes=player.GetVar("notes");
var exercisenotes1=player.GetVar("TextEntry283");
var exercisenotes2=player.GetVar("TextEntry268");
var exercisenotes3=player.GetVar("TextEntry270");
var exercisenotes4=player.GetVar("TextEntry271");
var exercisenotes5=player.GetVar("TextEntry272");var mailto
Related Content
- 9 months ago
- 6 months ago
- 8 months ago
- 9 months ago
- 12 months ago