Forum Discussion
JimOwen-f418d1f
2 years agoCommunity Member
Concatenate slide numbers into variable
Hello,
I would like to keep track of a user's progress through a course by concatenating slide numbers (and a comma) every time a slide is started. I can get the Project.SlideNumber variable, but ...
SBP_Inc
2 years agoCommunity Member
let learnersPath = ''; // define learnersPath as a string type SL variable
// Code for a javascript trigger to run at slide timeline start
const slideNumberFromPlayer= 1; // example; get actually from the Player() using your JS code
learnersPath = learnersPath + "," + exampleSlideNumber;
// console.log(learnersPath);