Storyline 360 - Execute Javascript trigger, links not clickable

Apr 05, 2017

In Storyline 360 I have an Execute Javascript Trigger with the following script (I just put an extract of it here to keep it simple). The text shows up fine but the links are not clickable.
I’ve published it for LMS and tested on SCORM Cloud; also published for web and tested from a web server. Same script works fine inside an html page. Any ideas what I’m doing wrong?

the script:
var player = GetPlayer();
var Feedback;
var topics = new Array();
topics[0]= ["Text in relation to link one goes here.", ["<a href=’https://www.google.co.uk/' target='_blank'><u>View link 1</u></a>"]];
topics[1]= ["Text in relation to link two goes here.", ["<a href=’https://www.google.co.uk/' target='_blank'><u> View link 2</u></a>"]];


for (i = 0; i <topics.length; i++) {
Feedback += ("Q"+(i+1) + "\) ");
Feedback += topics[i][0] + "\n"+ "<b>Suggested reading</b>: " + topics[i][1]+ "\n\n";

player.SetVar("feedbackText", Feedback);

}

 

2 Replies
Ashley Terwilliger-Pollard

Hi Lyn,

I'll admit to not being much of a Javascript guru, although we've got lots of them in the community! I tend to see folks find that it's something as simple as an error in the code, so you may want to begin by checking the best practices here and then hopefully others in the community will also be able to share their thoughts and ideas here. 

This discussion is closed. You can start a new discussion or contact Articulate Support.