Forum Discussion
DilshanSamarawe
2 years agoCommunity Member
Get Built-in variable (Slide.Id) when following storyline course
Hi,
As mentioned in the title, I like to know whether I can get the value of a built-in variable when executing JavaScript triggers. Specially Slide.Id variable when publishing a storyline in xApi...
MauroBiscione
11 months agoCommunity Member
Hello,
One way you can do it is store the value in a variable in Storyline:
Set CheckSlideID to variable Slide.Id
Then in your JavaScript trigger, pull the value from there:
var player = GetPlayer();
var CheckSlideID = player.GetVar("CheckSlideID");
Related Content
- 10 months ago
- 11 months ago
- 9 months ago