Blog Post
JimArbon-8875a0
2 months agoCommunity Member
I have a use case that is the opposite of this :)
We have custom JS that lets users leave feedback on individual slides, and we send the slide number as an identifier for each slide. In a course this works fine because we can use Project.SlideNumber (some resource slides are hidden in the menu), but when using this in an exam with a random draw of questions from a pool, Project.SlideNumber always increments sequentially, as opposed to using the fixed slide number that's next to the slide title, for example "Q1.8"
Project.SlideTitle is unique per slide and doesn't change when the questions are shuffled, but it's often a fairly cumbersome string that isn't that easy to identify a particular slide with.
Slide.Id is a unique identifier, but it's a whole bunch of random characters that doesn't help us identify a slide, unless we build a custom index for each exam that we have.
I just tried setting a variable to Project.SlideNumber at timeline start, but that just gave a sequential number.
Is there a way to add a fixed slide number that refers to the slide order in the Story view? Thanks!
We have custom JS that lets users leave feedback on individual slides, and we send the slide number as an identifier for each slide. In a course this works fine because we can use Project.SlideNumber (some resource slides are hidden in the menu), but when using this in an exam with a random draw of questions from a pool, Project.SlideNumber always increments sequentially, as opposed to using the fixed slide number that's next to the slide title, for example "Q1.8"
Project.SlideTitle is unique per slide and doesn't change when the questions are shuffled, but it's often a fairly cumbersome string that isn't that easy to identify a particular slide with.
Slide.Id is a unique identifier, but it's a whole bunch of random characters that doesn't help us identify a slide, unless we build a custom index for each exam that we have.
I just tried setting a variable to Project.SlideNumber at timeline start, but that just gave a sequential number.
Is there a way to add a fixed slide number that refers to the slide order in the Story view? Thanks!
- PeteBrown-651d62 months agoCommunity MemberI wonder if you could have an off-screen, inaccessible element on each screen, e.g., a text box, and give it a unique but meaningful and readily identifiable text value, e.g., '!MyQuestion12'. Potentially your javascript could iterate through the html elements on any given screen looking for your hidden element, e.g., something that begins with '!MyQuestion...'. You could then tag/report that unique text value with the feedback left.
Depending on how closely tied your unique text values were to the actual storyline screen (i.e., would this unique text value accurately point to which screen it was), you would either inherently know which screen the feedback was referring to or you could do a simple search in Storyline to find the value.
Maybe there's something in there to help? I've seen lots of examples of iterating through html elements looking for alt texts etc. Good luck!