In that case, you can create a variable. Have js change the variable when the script is finished. Create a trigger to jump to next slide when variable changes.
What I am looking for is a way to jump to a specific slide based on user role. So if you have 8 roles, each one going to specific slides in a course without repeating the slides.
So Role 1 goes to Slide 1,3,5,7,9. Role 2 goes to Slide 1,2,4,5,8 and so on. If you could tie JS to the jump that would be fantastic. For now have to set a variable and have multiple triggers based on role. Thanks for any further thoughts.
My thoughts, which you asked for. Trying to tie the jumps to js is adding an extra layer which I see as pointless, and inefficient. Especially in your case, where the different roles visit completely distinct slides, with the possible exception of the very initial slide. In that case, create a scene for each role, visit the initial slide to determine the role, and send them to the corresponding scene. From there, it can't be easier or simpler than "Jump to Next Slide". Maybe even easier is a separate module for each role. My thought is that the simplest ways are the best, and usually the easiest.
If it is a case where the different roles visit some of the same slides, and some unique ones, triggers are still preferable to js. After instructional principles, probably the most important consideration for a module is future maintenance, and the one who follows you may not have the programming skills to update js.
There is a pretty good sample of reusing some of the same slides attached to the discussion at:
Thanks Walt for chiming in and responding, I appreciate it. My scheme may be the best then based on your points.
I was building my page sets per user in an Array, since I have multiple courses that have multiple users in each, all sharing some slides, unique others. There are 100+ slides in each course so thought a JS scheme may be a possibility as these larger branching courses that I usually build.
I have always used var's with triggers to do this, but with the scope I have was trying to see if anyone had a different way ;0) Thanks!
I am a newbie to Storyline and working on a use case, where one of the video slides should only be played based on the logged-in user's context. So, for now, my idea is to set a variable on that slide at runtime and decide whether the video should be played or not. If the user should not see the slide based on their context, then I need to automatically advance the user to the next slide. What would be the best way to achieve this?
The slide that jumps to the video should have triggers with conditions. One trigger should jump to the video slide if certain conditions (learner context) are met. Then if there is only one other option, the else part of the trigger jumps to the other slide. If there are more than two options, you need more triggers.
For a good example of how this can work see the discussion at:
13 Replies
This post was removed by the author
Thanks for the reply, Matthew.
If it is possible please share.
Just out of curiosity, what would you gain by creating a trigger to use a javascript to replace the function of a trigger that already works?
Dear Walt,
I am developing one project that is input fields, when user fill correctly all input fields auto jump to next slide.
So I required functionality for go to next slide function in javascript.
In that case, you can create a variable. Have js change the variable when the script is finished. Create a trigger to jump to next slide when variable changes.
Dear Walt,
Thank you very much giving idea about automatic go to next slide for my requirement.
What I am looking for is a way to jump to a specific slide based on user role. So if you have 8 roles, each one going to specific slides in a course without repeating the slides.
So Role 1 goes to Slide 1,3,5,7,9. Role 2 goes to Slide 1,2,4,5,8 and so on. If you could tie JS to the jump that would be fantastic. For now have to set a variable and have multiple triggers based on role. Thanks for any further thoughts.
My thoughts, which you asked for. Trying to tie the jumps to js is adding an extra layer which I see as pointless, and inefficient. Especially in your case, where the different roles visit completely distinct slides, with the possible exception of the very initial slide. In that case, create a scene for each role, visit the initial slide to determine the role, and send them to the corresponding scene. From there, it can't be easier or simpler than "Jump to Next Slide". Maybe even easier is a separate module for each role. My thought is that the simplest ways are the best, and usually the easiest.
If it is a case where the different roles visit some of the same slides, and some unique ones, triggers are still preferable to js. After instructional principles, probably the most important consideration for a module is future maintenance, and the one who follows you may not have the programming skills to update js.
There is a pretty good sample of reusing some of the same slides attached to the discussion at:
https://community.articulate.com/discussions/articulate-storyline/solution-to-alternate-path-navigation
Thanks Walt for chiming in and responding, I appreciate it. My scheme may be the best then based on your points.
I was building my page sets per user in an Array, since I have multiple courses that have multiple users in each, all sharing some slides, unique others. There are 100+ slides in each course so thought a JS scheme may be a possibility as these larger branching courses that I usually build.
I have always used var's with triggers to do this, but with the scope I have was trying to see if anyone had a different way ;0) Thanks!
Hi there,
I am a newbie to Storyline and working on a use case, where one of the video slides should only be played based on the logged-in user's context. So, for now, my idea is to set a variable on that slide at runtime and decide whether the video should be played or not. If the user should not see the slide based on their context, then I need to automatically advance the user to the next slide. What would be the best way to achieve this?
Thanks for your help in advance.
The slide that jumps to the video should have triggers with conditions. One trigger should jump to the video slide if certain conditions (learner context) are met. Then if there is only one other option, the else part of the trigger jumps to the other slide. If there are more than two options, you need more triggers.
For a good example of how this can work see the discussion at:
https://community.articulate.com/discussions/articulate-storyline/solution-to-alternate-path-navigation
Thank you so much, Walt! I will try this one