Printing Results from A Result Slide
May 21, 2012
I am creating a graded quiz for kids to practice Bible verses. Before they start the quiz, I ask for their name. When I was making the result slide I ticked the "Print Results" option. When I previewed the slide, it asked for the users name again. Is there a way for the name to be already in the program. Also, when they print the results, is there a way to make a certificate and then when they (user) clicks the "Print Results" it prints the certificate. Is there a way to do this?
Joshua
17 Replies
Is there any way to do this?
I'm working on the same problem.
Joshua, if you follow steps from http://community.articulate.com/tutorials/products/adding-text-variables.aspx and adjust the results slide settings to "allow user to print certificate" but making sure to uncheck the "prompt user to insert name before printing" box, you'll have no problem with your results and/or certificate slide print. Don't forget that there are three options as to results slides and I think the last one (blank results slide) would be ideal for certificate customization. As it's been just a couple of days I have started getting familiar with the Storyline settings, I look forward to reading all about relevant advice and potential considerations.
I am also looking for a solution to this. I am having the user enter their name at the very beginning of the course I am creating. Within the course there will be multiple quizzes and a final exam. I don't want the user to have to type their name after they complete every quiz/exam for it to display on the printed results ("report.html") page. Is there a way I can do that?
Yes--assuming you used a text entry box to gather their name, this creates a variable.
Just reference the variable on your results page.
The syntax for this is: %variable_name%
Here's something that Articulate did. The first page has the learner enter their name. A variable called Name is created.
A later slide references the name entered:
When the learner see this, the name they entered on slide 1 is shown to them on the slide above (which can also be used on the quiz results slide).
Thank you for your quick response. I have that part working, where the name displays on the slide. But I want the name/variable to transfer to the "report.html" page when they print their results (instead of asking them to enter it again).
Hi, Becky!
I think this old thread discusses that: http://community.articulate.com/forums/p/12306/73675.aspx
In the report.html file it appears that the user's name is stored as g_oPrintOptions.strName. I think I just need to try to overwrite that variable, but I'm not sure how to get to it since it's not in the list of variables. I'm guessing it's a behind-the-scenes thing that Articulate creates when they prompt the user for their name (which is what I'm trying to avoid). If anyone has any suggestions of how to access and/or set that variable via the data entry field I created, I think that would do the trick.
Hey, Becky! If you don't get an answer soon, I'd PM Steve Flowers. He's our resident expert here on a lot of the deep this like this. Maybe I'll PM him now.
Hi, Becky -
I'd set this up to use the JavaScript GetVar / SetVar methods instead of combing through the PrintOptions object. It's more straight forward. It would work something like this:
var player=window.opener.GetPlayer();
var js_yourUsername=player.GetVar("yourUsername");
This grabs the value of your custom Storyline variable (assuming you've created a variable with the name yourUsername and populated it). Now you can employ the contents of js_yourUsername just as you would any JavaScript variable. The results.html output is sort of oogie. I tend to create my own popup pages and skip the results.html. But it's nice to have some example code for extracting results.
Does anyone have a book they'd recommend on learning JavaScript? After coming across this thread, it seems to me knowing JS would really come in handy for getting SL to do certain things.
Steve,
Thanks for your response. I have been using GetVar in JavaScript triggers when creating my own custom popup pages (for printing the scores of multiple quizzes and creating certificates). I will do the same and create my own Print Results page that way too. Thanks!
Jesse,
I don't have any books to recommend, but I visit w3schools.com a lot for JavaScript help and information (http://www.w3schools.com/js/default.asp). The site is handy because most of the time it will provide an explanation and then allow you to "Try it yourself" and play with the code. I find that helpful because I can (to an extent) play with the code to see if I can get it to do what I want in that remote environment before bringing it into whatever project I'm working on.
Great, thanks Becky. I'll check them out.
Hi, Jesse -
There are a few really good books out there. These are my favorite references:
Javascript: The Good Parts
JavaScript: The Definitive Guide
For learning JavaScript, I think this would be outstanding:
http://www.codecademy.com/
Teamtreehouse is also great for learning development:
http://www.teamtreehouse.com/library/websites/javascript-foundations
Sweet, thanks Steve.
Hi Steve, any changes to this one? I am pulling the username from our LMS and want to insert it into Report.HTML.
This discussion is closed. You can start a new discussion or contact Articulate Support.