Go Next functionality using javascript in storyline

Feb 12, 2018

Dear All,

Can any one give suggestion for go to next slide javascript functionality.

Here all are using go to next slide we are using trigger in storyline, but I am trying using javascript instead of trigger.

Can any one share our solution.

 

13 Replies
Jeff Forrer

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.

Walt Hamilton

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

 

Jeff Forrer

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!

Naresh Palvai

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.

Walt Hamilton

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