Can Javascript access built in variables?

Jun 28, 2019

I'm trying to use this code in a trigger but it is just alerting with "null":

var player = GetPlayer();

alert(player.GetVar("Menu.SlideTitle"));

Am I doing something wrong, or are Built-In Variables not yet accessible via javascript?

9 Replies
Will Findlay

That's a great use I hadn't thought of!

I was actually doing this so I could put an Execute Javascript trigger on a Slide Master that would send the name of the slide to a Learning Record Store using xAPI. It actually works quite well and makes it so you only have to insert the javascript code once!