User notes that they can print and email
Dec 10, 2013
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
238 Replies
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
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:
Thanks again Matthew!
Regards
David
Hi Matthew,
That's great. I really appreciate the help you have given me.
Many thanks
Dave
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%0A
win=window.open(mailto_link,'emailWin');
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.
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
This is just what I am looking for, great work, thanks so much for sharing!
This looks awesome Stephanie, and hopefully exactly what i need! Time to tinker with you JS.
Many thanks.
does this store their response in the LMS once they are done to come back to and reference or is this something they have to print and keep?
The Storyline variables should be saved in the LMS provided the resume
feature is enabled.
Thank you,
James Kingsley
Thank you so much Stephanie, this is such a useful feature. Thanks for sharing this information.
Hello, I have another question on the Notes element of this thread. I'd like to create a Notes panel that learners can show or hide throughout the training, using it to type in their notes as needed and emailing all their notes to them at the end.
I have the email piece down thanks to this thread.The issue I'm running into is that I can't figure out a way to allow learners to show the Notes panel whenever they want to. I placed a Notes panel with a show/hide button on a Master Slide, but when I use that layout with multiple layers that show/hide one at a time as the learner clicks a series of buttons, the Notes panel disappears with the first button click, as does the Note panel button.
If you can figure out how to do this - or help me identify what I am doing wrong - I'd appreciate it!
Thanks.
You need a variable so you know if the notes panel is open and closed, e.g. NotesOpen
Set it to true whenever it is open and false when it is closed.
Now on each layer in your course add a trigger that shows your notes layer (I presume you are incrementing a variable, on condition NotesOpen is equal to true, ensure the the notes layer is set to not hide other layers.
Not sure why the notes panel button is hiding is that on a layer as well?
Hi Phil, many thanks for your suggestion! I'm now closer to a solution but not quite there yet. Here's what I've done:
*Created a NotesOpen variable as you described
*Reconfigured the master so a button opens a notes layer and sets the NotesOpen variable to true, and sets the variable false when learner clicks the close button
*Set the notes layer not to hide other layers
Here's what happens now:
When I apply this layout to a slide with multiple layers that show/hide one at a time as the learner clicks a series of buttons, the Notes panel disappears with the first button click. Since the My Notes button still displays on the page, this isn't a dealbreaker, but it would be nice for learners for the open notes layer to stay open until they close it (rather than requiring them to keep clicking the My Notes button to re-open it when they are still interacting with the page).
Hmmm....
Is the notes panel a separate layer? Or does the notes layer have a button that toggles an object between hidden/normal?
On the master slide base layer, the My Notes button opens the Notes panel, which is on a separate layer named Notes.
On the Notes layer, learners can click X to close (hide) the Notes panel. When they click to close, they also set NotesOpen to False.
You need another trigger then to show the additional layer if NotesOpen = true.
Thanks again for your suggestions and for staying with this thread, Phil! I'll continue to puzzle through it and post my progress (if I make any!).
If you hit a stumbling block, post a slide or PM me and I am sure it can be fixed.
I was eventually able to solve this and get the Notes layer to show continuously throughout a slide that contains button-activated show/hide layers. However, my solution isn't optimal because on pages with layers it requires me to uncheck "Hide other slide layers" in Slide Layer Properties to enable the Notes layer on the master slide to always display. I wasn't able to accomplish this using a variable alone.
Unfortunately I am unable to upload a slide to this forum, but I hope that with the info below you will be able to understand what I've done and possibly suggest some way to simplify it by adding another trigger or variable.
--
Key variable: ShowNotes which shows or hides the notes layer that lives on the Master Slide (Show layer Notes if ShowNotes=true)
Master Slide:
On content slides:
Base layer - contains hotspot over a button on the Master Slide that toggles variable ShowNotes when user clicks; for each button that shows a layer on click, hides all other layers on the page (except Notes).
Thanks, as always, for the encouragement and assistance from this forum!
Joanna
For some reason when typing in lengthy text not all texts show in the email body :/ -- I wonder what's wrong. I also noticed that breaks aren't reflected either. The paragraphs just connect to each other in one line even though in the original entry they are separated. Thoughts?
Mailto has a character limit that may be the problem
Can you provide us an example? How much text are we talking about here? How many line breaks?
Do you have/can you provide any screen shots or .story files?
I just used the same story file Stephanie provided. In the published file, here's the text I typed in:
Activity: Delivering Coaching Feedback
Get managers consistently & confidently including right elements in a coaching conversation by giving a simple tool and practicing. Get this to be second nature…
Increase manager confidence and speed in delivering focused feedback using the COACH model to structure the coaching conversation
Activity: Coaching Scenarios & Practice
If you do not have recorded calls, use these scenarios to practice the coaching delivery on the previous page.
Then when i click on the email button, here's what's shown:
Thanks guys for helping.
Pretty sure the problem is the ampersand (&). If you want to let learner's use characters like that then you will need to 'escape' or encode it. Kinda like this:
encodeURIComponent(your_var)
This may help: https://www.w3schools.com/jsref/jsref_encodeURIComponent.asp