Skip to main content
Participant
September 14, 2016
Answered

Captivate - Question Pools and "if then" results

  • September 14, 2016
  • 1 reply
  • 902 views

I'm working with Captivate and am trying to set up a learning program for new hires and trainees.

Ideally, I'm looking to have a quiz set up with this format:

Question 1 (always the same)
Question 2 (could be 2a, or 2b)

Question 3 (IF 2a, go to 3a. IF 2b, go to 3b)

Question 4 (IF 3a, go to 4a, IF 3b, go to 3c)

Question 5 (IF 4a, go to 5a, IF 3c, go to 4a)

I would think that Question 2 would need to be in a question pool, with 2a or 2b being the 2 possible choices. However, question 3 will be dependant on what question is presented from question 2's pool, so I can't just set up a question 3 pool, because I wouldn't know which question was selected for question 2.

Not sure if this is descriptive enough or not, but the general plan is depending on which path they take, either 2a, or 2b, will lead them down a separate path to "resolve" path a, or path b.

Thanks!

This topic has been closed for replies.
Correct answer Lilybiri

You cannot use a playbar in this case, since either slide 6 or slide 7 has to be skipped. This means you need custom navigation buttons. The Next button on slide 5 has to trigger a conditional advanced action, with two decisions:

  First decision 'Alwayss'

          Execute JavaScript     and put the command I posted before in the Script window; do not forget to define user variable

  Second decision 'JumpRandom'

         IF v_random is equal to 1

             Jump to Slide 6

         ELSE

               Jump to Side 7

Be sure not to have Next buttons on slides 6 and 7

             

              

             

1 reply

Lilybiri
Legend
September 14, 2016

You don't tell which version of Captivate you are using, but it is clear that you will need to use advanced actions, and the option Branch aware. I don't understand why you put 'question pools' in the title, because the only 'randomness' I'm seeing is after question 1: either 2a or 2b. All the other questions to follow are fixed. Does it have to be a random question as second question? Maybe use a random number generated with the JS Math functions, not with the default Question pool. You want to know which question appears: 2a or 2b, that is not possible with a question pool. The result of the JS result can be stored in a user variable:

    v_random = Math.floor(Math.random(2) + ;

Use both the Success and Last Attempt actions for the conditional action that will navigate to either Question 2a or 2b. You will not even need a conditional action for the rest of the path which is now defined. You only have to make sure that the user will never get on a quiz slide of the other path. But Branch aware already will prevent free navigation, that cannot be a problem.

With Branch aware you have to be sure that only the quiz slides of that path are visited, so that the quizzing system variables will get the correct value.

Participant
September 14, 2016

1) Captivate 7

2) I have only been working with Captivate from a very basic "set up 15 questions in a pool, insert 10 random slides from pool, present results" style quizzes. At this point, I'm working on something a little different...

I'm going to change up the terminology to try and help:

Slide 1 (same question) -> RANDOMLY selects slide 2 or slide 3.

Slide 2 -> goes to slide 5

Slide 3 -> goes to slide 4

Slide 4 -> slide 5

Slide 5 -> RANDOMLY selects slide 6 or 7

Slide 6 -> finish

Slide 7 -> finish

I just don't know how to implement the "randomly selects", option without it being either "on success go here, on fail go there", or rather "choose button 1 or button 2, and it not be a quiz question, but rather a non-graded slide"

Lilybiri
LilybiriCorrect answer
Legend
September 14, 2016

You cannot use a playbar in this case, since either slide 6 or slide 7 has to be skipped. This means you need custom navigation buttons. The Next button on slide 5 has to trigger a conditional advanced action, with two decisions:

  First decision 'Alwayss'

          Execute JavaScript     and put the command I posted before in the Script window; do not forget to define user variable

  Second decision 'JumpRandom'

         IF v_random is equal to 1

             Jump to Slide 6

         ELSE

               Jump to Side 7

Be sure not to have Next buttons on slides 6 and 7