Skip to main content
julief19411874
Inspiring
November 3, 2015
Answered

Branching - how to go back 2 slides - or orignal slide

  • November 3, 2015
  • 1 reply
  • 529 views

Hello,

Hopefully, I'll be specific enough .

As you can see on this slide, I have a clickable upper menu (TOC, LinkedIn, People to call, Resources and Exit).

When Resources is clicked, wherever in the course,  the learner lands on this slide:

Then, they are presented with 3 optional buttons. (Our locations, Org chart and Photo album).

The Next button on this slide actually brings the learner back to wherever they were in the course. (Action set to go to last slide visited). These are optional. Meaning if the learners does not want to check out the locations or org chart, they go back to where they were in the course.

Now, this is where it gets complicated (for me)... Let`s say the learner clicks on Our location. He is brought to this slide:

My question is : Is there a way for the button on this slide to bring back the learner to the slide prior to the Resources Area slide?

I'm using Captivate 8 on PC.

Many thanks,

Julie

    This topic has been closed for replies.
    Correct answer Lilybiri

    There is no system variable to go 'two' slides back. You will need an advanced action for the Resources button, to store the present number of the slide (cpInfoCurrentSlide) in a user variable 'v_lastvisit' before jumping to the slide Resources. Do not use the 'Go to last visited slide' for your 'Next' button on the Resources slide, but this action:

        Expression cpCmndGotoSlide = v_lastvisit - 1


    The reason for an Expression is that cpCmndGotoSlide starts with index=0, whereas cpCmndGotoSlide starts with 1.

    1 reply

    Lilybiri
    LilybiriCorrect answer
    Legend
    November 3, 2015

    There is no system variable to go 'two' slides back. You will need an advanced action for the Resources button, to store the present number of the slide (cpInfoCurrentSlide) in a user variable 'v_lastvisit' before jumping to the slide Resources. Do not use the 'Go to last visited slide' for your 'Next' button on the Resources slide, but this action:

        Expression cpCmndGotoSlide = v_lastvisit - 1


    The reason for an Expression is that cpCmndGotoSlide starts with index=0, whereas cpCmndGotoSlide starts with 1.

    julief19411874
    Inspiring
    November 3, 2015

    Hello Lilybiri,

    If I understand this correctly, I have 2 steps:  One  - to store the present number of the slide and 2 - change the action on my "Next" button of my Resources slides.

    But, how do I "Store the present number of the slide" exactly?

    Thanks!

    Lilybiri
    Legend
    November 3, 2015

    'Assign v_lastvisit with cpInfoCurrentSlide' where you have to define the user variable v_lastvisit. This has to be done on the slide from where the user is going to Resources, that is why I wrote to add it to the 'Jump to' command that is at this moment triggered by that button Resources. Instead of a simple action, you'll have a standard action with both the Assign and the Jump to.