Skip to main content
rachel_22033
Participant
February 8, 2016
Question

Can you reset quiz answers to allow for retakes?

  • February 8, 2016
  • 3 replies
  • 7110 views

I have a lesson that has "informal" quiz questions during a practice section (click boxes) and 2 "formal" T/F questions.  If the learner gets one or both of the questions wrong, I want to allow them to retake the quiz and get credit for the new answers.  As it is when I go back to the quiz (Jump to Slide) the previous answers are there and I can't change the answer or use the submit button.

Is there a way to reset just the "formal" quiz questions?

Thanks,

Rachel

This topic has been closed for replies.

3 replies

Participating Frequently
May 30, 2018

The following javascript will reset the quiz in Captivate:

cp.resetQuizData();

(set it to run in the current window)

You can create a button "Try Again" to launch an advanced action that runs that javascript and jump them to the desired slide (quiz intro, first page of the course, etc.).

graced12857907
Known Participant
July 4, 2018

Thank you very much for this suggestion.

Unfortunately, when I tried it, it didn't reset the quiz. I have a button at the end of the course that, up until now, simply jumped to the first slide. I set up an advanced action that executes the javascript code you suggested, then jumps to the first slide. I published as html5 and uploaded to the moodle site we use for testing. The jump worked, but the questions retained their state from the first try.

Is there an additional source of information on using javascript in Captivate. I found this article, which I find totally incomprehensible:

Learn about the Common JavaScript interface for Adobe Captivate

THIS IS ADDITIONAL INFORMATION: After finding a few more suggestions to use the same code, I decided to do a more thorough test. I'm using Captivate 2017.

Scenario 1: Go through all questions. Click Continue on results screen. Click Replay on last screen.

     Result: quiz questions are all reset.

Scenario 2 (The one I followed that lead me to conclude the code doesn't work): Go through all questions. Click Review button on results screen. Click Continue when you get back to results screen. Click Replay on the last screen.

     Result: quiz questions are all shown as not being answered. It's as if the course is still in Review mode but any answers that were previously answered were cleared.

It appears that the javascript command cp.resetQuizData() does, in fact, clear the quiz data. What isn't being cleared is the variable that's set when you review the quiz results. Any suggestions on how to clear that variable?

Participating Frequently
June 29, 2020

Hi, it is an old question, but maybe in the future it will help people like me,

who are looking for solutions, where standard captivate methods don't help.

These two strings reset Quiz:

    m = cp.movie.playbackController.GetQuizController();
    m.SetIsQuizCompleted(false);
It is used, when answered questions are particularly right, Quiz marked as complete,
but there is a reason to make a better answer.
Normally in that case attempts are ignored by the quiz controller.
 
Lilybiri
Legend
February 9, 2016

If you are indeed talking about Captivate, Jump to slide will not do the trick at all.

You have to allow multiple attempts on Quiz Level (Quiz, Preferences, Pass Fail) and have the Retake button shown up. Only clicking on that Retake button will clear the answers of a previous attempt. You don't tell which score has been attributed to the question slides (T/F)? If it is the default 10points, you'll have a total score of 20pts, and have to set the pass percentage to 50% if answering one of the two questions is sufficient for Success.

Please, tell also which version you are using when posting a question? In Captivate 9 there were enhancements to Quizzes, maybe you could have used Knowledge Check slides for the not-formal questions. Read more about question and quiz design in these blog posts:

Question Question Slides in Captivate - Captivate blog

Question Question Slides - Part 2 - Captivate blog

KJerryK
Legend
February 8, 2016

Please verify if you are referring to Captivate or some other application, so this question can be moved to the appropriate forum