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
- WendyFarmerSuper Hero
Hi Carmen
Try uploading it in Scormcloud and testing to see if it is an LMS issue. I had it working with 27 different variables.
- KerriBishmanCommunity Member
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?
Thanks!
Kerri
- OwenHoltSuper Hero
Are you first taking the StoryLine variable content and assigning it to a JavaScript variable and then using the javascript variable in the body of the email?
- KristineWCommunity Member
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!
Kristine- KathyLee2Community Member
This was my first time using Javascript in Storyline2, and I was experiencing the same problem. It turns out I needed to create a variable for the title and the date. It may be a given for super users out there, but definitely need-to-know new information for beginners like me.
In the image attached, see the variables "PrintTitle" with set default value of the title you want to appear and "SystemDate".
Now my course works! Thanks Stephanie for the great idea!
~Kathy
- PeterElliottCommunity Member
I have just used this as a guide to help me sort out how to use java to insert date and Time and the print a form. It is a great guide. Thank you
- DuaneDickeyCommunity Member
Stephanie,
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".
- NickWilson1Community Member
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?
- StevenHeindlCommunity Member
Thank you so much for this course file and explanation. This functionality is so great and yet I had such a hard time figuring it out before your post.
- HeleneCaura-YanCommunity Member
Thank you for sharing! I am looking for a solution like this, but I would also like the learners to be able to add pictures, to draw, and to print in a nice format... Am I too ambitious here?
- NoRCommunity Member
Amazing job Stephanie! An inspirational design! Thanks for sharing