Can someone please look at my javascript?

Mar 25, 2016

Hi all!  I've been reading and learning from these discussions for a long time. Without even knowing it, your help has saved me on many occasions!  Thanks!  

I've used Stephanie's javascript in a Storyline 2 project to email (I'm not using the print function) and it has worked beautifully until I made additions two days ago.  I know little to nothing about javascript, and one of our I.T. guys has been helping me as much as he can.  Would someone please take a look at it to see what's wrong?  

9 Replies
Leslie McKerchie

Hi Donna!

JavaScript is not something I'm good at nor is it something I can support. Hopefully someone in the community will be able to pop in and take a look to assist.

For anyone else that may run across this thread:

Articulate Storyline supports JavaScript triggers, letting you extend the functionality of your courses. Although we don't provide support for JavaScript coding, this article will help when you're developing JavaScript triggers in Storyline.

Mike B.

Try changing all of the double quotes to single quotes in your mailto variable string. That seemed to do the trick here. Maybe you can't mix single and double quotes in js?

Also, try using window.location.href=mailto_link; instead of win=window.open(mailto_link,'emailWin'); as that doesn't open up an extra empty browser tab. Just test and make sure that works for your environment.