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 -

Screenr Part 2: How It Was Built -

Storyline Source:

Published Output:



238 Replies
Kerri Bishman

Hi Stephanie (or anyone that would like to answer :),

I'm using your email java (and I've tried another email java script that I've had success with as well) and for some reason the email opens, the words are correct, but anything I'm pulling from a variable is "null" even though it's populated in the training.  I just can't figure out what I'm doing wrong.  

Does anyone have any suggestions?



Kristine Wiscarson

Hi Stephanie (or anyone who can help!) I've been working with this as well. 

Two items I can't seem to resolve:

1. The text isn't wrapping on the print preview, it simply extends out. Is it possible to make it wrap?

2. While my email function works perfectly, I am having issues with the Print and Print Preview function.  The Title and Date won't display on my course's print preview. It only shows "Null" for each title and date.  The rest of the notes are working just fine on the print preview. I have an Execute JavaScript trigger on slide 1 and used the System Date JS exactly as it was presented on the PPT slide provided above.  I made sure SystemDate matched in both places as JS is case sensitive.  I'm also a little unclear if I need to add more to have the code retrieve a title/headline for the print preview.  Is there a step I'm missing to make these work?

I tried in SCORMCloud with the same result.

Thank you so much!

Duane Dickey


I am blown away by your creativity and technical skills!

I absolutely love how you created the "notes" portion that can be emailed or printed. I think this part of your project will work beautifully with my current project.

Thank you for being willing to share your ideas and add to the group knowledge base. You are doing a great job of encouraging the rest of us to "up our game".

Nick Wilson

First off, thank you Stephanie for sharing this example.  It is very well done, and I'm looking forward to utilizing this functionality in a course I am currently building.  I am running into a problem with customizing the javascript, and wondered if anyone has had the same issue...

I have been able to customize the variables in the script to match the variables in my course, and the email and print functions seem to work fine at that point.  However, when I attempt to customize the email body text, the function no longer works.  In Stephanie's example, the text reads, "Activity Notes - My thoughts on the Non-Discrimination policy" as a header for one of the text variables.  Shouldn't I be able to customize this text to read as whatever header I want in my own course?  The email function only seems to work when the text is left as-is.  When I change it, the button no longer executes the email function.  I should mention that I am definitely a novice when it comes to javascript.  Any thoughts?

Sabrina Huyett

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!

Bastien Médard


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 !!




Doug Brown

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



Doug Brown

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