Forum Discussion
Help With JavaScript code for Text Entry Printing in Storyline 360
I have the same issue. Even if I replace my code with a simple JavaScript command such as window.print();
Storyline 360 will still not execute the JavaScript code tied to a button (Execute JavaScript When the user clicks Btn_Print).
- PhilMayor3 years agoSuper Hero
There is a print screen trigger now. But that should work. Have you looked at the console to see what error you are getting? I suspect you have bad syntax in some javascript in the course somewhere.
Sent from my iPhone
- StacySpringer-63 years agoCommunity Member
Hi Phil, I am trying to print variable responses to PDF. This has worked in the past (March 2022). I have been testing the published version on my Review 260 with Firefox's web dev tools. Here are the errors I get:
- PhilMayor3 years agoSuper Hero
As all of the JavaScript in a course is published into a single file. A syntax error in one will break all the other code. Have you tried the window.print in a course with only that code? It looks like you may have a code error but without seeing the code it is difficult to say where.
Sent from my iPhone
Still tracking the issue with Firefox developer tools: Here are the errors when the button is pressed:
actionator::exeJavaScript - this.execUserJs is not a function bootstrapper.min.js:2:149273
Referrer Policy: Ignoring the less restricted referrer policy “no-referrer-when-downgrade” for the cross-site request: https://n.clarity.ms/collect 840.39dbb679ee07e8aa.js:1:37488
I have attached my Javascript. Also, I still get the same thing when my Javascript is just Window.print();
The previous media piece that uses the same script still works (Published in March 2022) is here: https://360.articulate.com/review/content/8f330d28-988d-40fa-acee-106a09d76f4a/review