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...
Nedim
11 months agoCommunity Member
Try this code:
var player = GetPlayer();
var getSlideId = player.GetVar("CurrentSlide");
alert("SlideID from variable: " + getSlideId );and trigger
Result:
You can't reference the built-in variable directly in the JavaScript code.
Related Content
- 10 months ago
- 11 months ago
- 9 months ago