print screen
Jan 26, 2017
hi all,
I am struggling with a print screen function at present.
I want to include a notes feature in my Storyline 2 course, and have built the relevant JS and triggers to capture and reprint the notes.
Background - users have a "notes" button on each slide, which opens a lightbox slide to allow them to enter notes for that section. At the end of the course, the user has the option to view all notes, which shows their note per section. All this works fine.
Problem - to print the screen the standard JS of window.print(); does not work in firefox or chrome and in IE it gets squashed on the page to be aesthetically displeasing. Not being available in chrome is not really useful, and I know it's not purely a chrome issue as another course (albeit created in lectora) allow this function.
The lectora course uses the below script, which I have simply copy and pasted into my storyline course, as I am very much a novice with Javascript I was wondering if anyone can see what i might be doing wrong.
function action110024(fn){
window.print();
if(fn && typeof(fn) == 'string' ) eval(fn);
else if(fn && typeof(fn) == 'function' ) fn();
}
2 Replies
think i may have found something useful to fix my own problem https://community.articulate.com/discussions/building-better-courses/user-notes-that-they-can-print-and-email
Hey Steve! Thanks for sharing your process and that resource that you found! We can't provide much help with JavaScript, but there's lots of info in E-Learning Heroes, as you can see. Please let everyone know how you make out on your project!
This discussion is closed. You can start a new discussion or contact Articulate Support.