Skip to main content
graced12857907
Known Participant
July 4, 2018
Question

How can I assign a value to cpInReviewMode?

  • July 4, 2018
  • 2 replies
  • 1505 views

I want to create a replay button that completely resets the quiz before jumping to the first slide. I've use suggestions from the forum and I found that the javascript command cp.resetQuizData(); in and advanced action effectively clears out any replies to the quiz questions. What it doesn't do is reset the value of cpInReviewMode. That means that if students review the quiz questions from the results screen, then decide to replay the course, they can't attempt the quiz questions again.

I tried adding a line to the advanced action to assign a value to cpInReviewMode to reset it. Unfortunately, cpInReviewMode doesn't appear in the drop down list of variables that appears with the Assign function. Is there another way to reset the value of this variable?

    This topic has been closed for replies.

    2 replies

    Participant
    May 25, 2022
    quizzController = cp.movie.playbackController.GetQuizController();
    quizzController.SetIsInReviewMode(1);
    Participant
    July 22, 2022

    Does this work?

    OzBassist
    Inspiring
    August 29, 2023

    From what I can see, this works a treat!
    Set the value to 0 if you want to reset the quiz so it appears as normal.

    Cheers - saved me a bunch of time.

    Lilybiri
    Legend
    July 4, 2018

    Quizzing system variables are all read-only. Have a look at:

    Using Quizzing System Variables - Captivate blog

    graced12857907
    Known Participant
    July 4, 2018

    Thank you for your quick reply.

    I suspected that the variable I was trying to reset was read-only. But, isn't quiz data read-only too? I was hoping there might be a way to initialize cpInReviewMode using javascript in the same way that quiz data is cleared using cp.resetQuizdata().

    Years ago, Authorware had an Initialize() function that could be used to reset the values of selected variables, including read-only system variables, when manually restarting a course. I hoped there would be a way to do that with Captivate too - reset variables without having to exit the lesson and start again from the LMS. Perhaps this is a feature request.

    Lilybiri
    Legend
    July 4, 2018

    You want to use JS, but I never use it for your use case, I just enable the Retake button, it will reset all quiz answers as you wanted. What is wrong with that? If you want to allow them to Review before Retake, with the present setup for Review, that means you encourage your learners to write down the correct answers, and pass the quiz without proving any understanding (have been a professor for a long time). You can create a custom Review slide (have a blog post about that) to give them a limited review, without showing the correct answers, and then let them Retake the quiz.

    Authorware was a great application, but cannot remember if it was compatible with SCORM requirements? Too long ago. I don't even remember why it was killed. Lot of better applications were killed for others.