Skip to main content
matt_creating
Known Participant
November 27, 2016
Answered

How do I go from the quiz results page to a multi state object?

  • November 27, 2016
  • 1 reply
  • 193 views

I'm doing a random quiz project that is 10 questions pulling from a pool of 28.  I'm using cap9.  How can I go from the quiz results page to a final congrats page that will display one of two messages depending on whether or the participant passed the exam?  I've got the last page set up with a multi state object that has the two messages but can't figure out how to get the continue button on the results page to point to one of the two objects depending on the exam result.  Any assistance is appreciated.

This topic has been closed for replies.
Correct answer Lilybiri

If those are two states of one object, you will have to change the proposed actions becayse you cannot change the state of a multistate object with an action from another slide (here the score slide). No need however to make two slides, which will increase file size (can be important if you want to display the course not only on desktop/laptop but on other devices). Change both actions (Passing Grade and Failing Grade) to 'Go to Next Slide'.

Use the On Enter event of the slide with the multistate object to trigger this conditional action:

IF cpQuizInfoPassFail is equal to 1

    Change state of Object to Success

ELSE

   Change state of Object to Failure

'Object' is the multistate object, 'Success' is the state you want to show when quiz is passed, 'Failure' when it is failed.

The advantage of states is that you have the choice to keep the state when returning to the slide, or not.

1 reply

Lilybiri
Legend
November 27, 2016

The Continue button on the score slide triggers the actions define in the Quiz, Preferences, Pass or Fail: either On Passing Grade or On Failing Grade based on the result of the quizzing system variable cpQuizInfoPassFail.

You could group the objects on the slide after the score slide, and use these advanced actions:

   For Passing grade:  

      Hide Gr_objects

      Show SuccesObject

      Go to Next Slideµ

For Failinggrade:  

      Hide Gr_objects

      Show FailObject

      Go to Next Slide

matt_creating
Known Participant
November 27, 2016

I have one multi-state object on the slide after the quiz results page.  I would like that slide to display one of the two states (messages) depending on if the participant passes or fails the exam.  It looks like advanced action is the way to go.  I was just reviewing the quiz setting and I'll think I'll go with that.  

Is there any draw back to just going with two separate slides, each one with a different message, and having the quiz preferences direct the user to one slide or the other depending on the results?  Thanks

Lilybiri
LilybiriCorrect answer
Legend
November 27, 2016

If those are two states of one object, you will have to change the proposed actions becayse you cannot change the state of a multistate object with an action from another slide (here the score slide). No need however to make two slides, which will increase file size (can be important if you want to display the course not only on desktop/laptop but on other devices). Change both actions (Passing Grade and Failing Grade) to 'Go to Next Slide'.

Use the On Enter event of the slide with the multistate object to trigger this conditional action:

IF cpQuizInfoPassFail is equal to 1

    Change state of Object to Success

ELSE

   Change state of Object to Failure

'Object' is the multistate object, 'Success' is the state you want to show when quiz is passed, 'Failure' when it is failed.

The advantage of states is that you have the choice to keep the state when returning to the slide, or not.