Forum Discussion
NiaMartinez
4 years agoCommunity Member
Storyline 360: Printable Free-Response Javascript and Variable Review for Multiple Questions
Hi Storyline Community and any Javascript experts!
I would like to add a print option for learners to be able to print out their responses to 6 different questions. I added the TextEntry Variables...
HeatherRaybold
4 years agoCommunity Member
This was so helpful! Thank you for sharing!! I have two follow ups:
- Would it be possible to add a title to the page that gets printed? I would like to add the title of 'growth opportunities' at the top.
- Also, I wanted to have one slide with three open responses. I used the template shared here but I'm missing a step. Any help would be greatly appreciated!
Thanks!
Heather
- Would it be possible to add a title to the page that gets printed? I would like to add the title of 'growth opportunities' at the top.
- Also, I wanted to have one slide with three open responses. I used the template shared here but I'm missing a step. Any help would be greatly appreciated!
Thanks!
Heather
BobStryker
4 years agoCommunity Member
Hi Heather,
Here is a version that I believe meets your requests.
Notice how the new headline was done in the JavaScript trigger. You can add any new lines you desire if you follow the syntax. Similarly, you can edit what's there, by removing the entire line, changing the bolded text, to changing the font size and style:
contents+="<div style='font-size:30px;font-weight:bold;margin-top:10px;'>Growth Opportunities</div>";
I added a layer which is attached to a participant leaving question 1 "blank." It prompts the participant to at least enter input for the first item. The following two inputs can be left blank.
There were two sets of variables attached to this interaction when only one is needed. I removed the duplicates.
Hope this helps!
Bob