• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How do I reset all quiz variables to allow full course retake - Captivate 2019

New Here ,
Sep 15, 2020 Sep 15, 2020

Copy link to clipboard

Copied

Greetings all!

I have a course owner who wants to allow a student to take the final exam twice and if failed, retake the entire course again, including 2 more times at the final exam. I know I can not change the read-only system quiz variables so that option is out. There must be a JavaScript approach that I can use in an Advance Action script to reset everything as if a first time at the course, but am a developer, not a programmer. Any assistance would be greatly appreciated.

Unfortunately, because of the sensitive nature of the content I am unable to share the Captivate file.

THANKS and cheers,

Russ

TOPICS
Advanced , Quizzing and LMS

Views

612

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 16, 2020 Sep 16, 2020

Copy link to clipboard

Copied

Do you really want to do it the complicated way? If yes, will leave you to JS experts but I really think this could be done much easier with one advanced action. 

My proposal:

  1. Set the number of attempts to 4 (2x2).
  2. The attempt number will be stored in the quizzing system variable cpQuizInfoAttempts.
  3. That variable is increased when reaching the score slide, where you have the Retake button. At that moment all answers are reset, including all quizzing system variables. Instruct the learner to click the Retake button, but give them a warning about having the course restarting for the third attempt. You can use the system variables cpQuizInfoAttempts and cpQuizInfoPassFail to do so (same as in 4)
  4. You need to trigger one advanced (or shared) action On Enter of the First Question Slide, something like this:

                     IF cpQuizInfoAttempts is equal to 3 AND
                          cpQuizInfoPassFail is equal to 0
                                 Jump to slide 1
                     ELSE
                           Continue

I supposed that the content slides are before the quiz slides. The learner will be navigated to the first slide of the course (you can change the slide of course). After the content slide they'll reach the first quiz slide after having visited the content slides on attempt 3 (if attempt 2 was a failure) the learner will be able to retake the quiz. There is still one attempt left on failure, the Continue will act and the Retake button can be used for the last attempt. Make sure the option 'Allow backwards movement' is checked in Quiz Preferences, Settings to be able to navigate to a content slide which is before the quiz slides.

 

     

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 16, 2020 Sep 16, 2020

Copy link to clipboard

Copied

Thanks for the reply and work around information.  However, the point you make, "At that moment all answers are reset, including all quizzing system variables." does not occur until AFTER the learner clicks the Retake button. I added a text caption to all question slides the results slide and a failure slide (fails 2 tries on the quiz) that shows the following:

   cpQuizInfoAttempts = $$cpQuizInfoAttempts$$
   cpQuizInfoTotalCorrectAnswers = $$cpQuizInfoTotalCorrectAnswers$$
   cpQuizInfoPointsscored = $$cpQuizInfoPointsscored$$
   cpQuizInfoPassFail = $$cpQuizInfoPassFail$$
   cpInfoPercentage = $$cpInfoPercentage$$

 

None of of the variables were reset until I clicked the Retake Quiz button. The result is that I am unable to reset the question variables after the 2nd fail and before they retake the entire course.  Is there another non-JavaScript work around that will allow me to force the student to take the full course again after the 2nd quiz failure AND reset all of the question variables (except maybe the cpQuizInfoAttempts variable, but resetting that would also be nice)?

THANKS and cheers, Russ

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 16, 2020 Sep 16, 2020

Copy link to clipboard

Copied

iI may have changed, used that approach in the past, but didn't test it in the most recent version. You can see an example in this blog:

http://blog.lilybiri.com/reset-knowledge-slide

It was a way to reset a quiz slide before the feature of KC slides appeared.

 

No problem. Let them click the Retake button but use a pop up to warn about the course needed to be viewed.

Move the action I provided to the first question. Make sure Backwards navigation is allowed in the quiz.

I have edited the previous answer to give this alternative for more recent veersions. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 16, 2020 Sep 16, 2020

Copy link to clipboard

Copied

The JavaScript solution isn't too tough. Here is a basic solution that might be what you're looking for. https://youtu.be/NpkUMkut1lU

Paul Wilson, CTDP

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 17, 2020 Sep 17, 2020

Copy link to clipboard

Copied

Thank you, Paul, for your reply.

I have already viewed your YouTube video related to my problem. It is an interesting approach, and I'm in the process of developing a variation of that approach. My course owner wants the student to have 2 tries on the quiz before having to retake the course (your video deals with 1 fail and then retake course). So some modifications of your approach are necessary.

Thanks and cheers,

Russ

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 14, 2023 Jun 14, 2023

Copy link to clipboard

Copied

I have a problem with the review quiz button. After complete the assessment if i click the review button that is working fine, I have created the Retake course button manually which is resetting the course properly. Once I clicked the Review Quiz button the quiz is not reset I am unable to attend the quiz still that is showing the review mode. Is is possible to reset the quiz after click the Review quiz button. Please help us. Thanks.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 14, 2023 Jun 14, 2023

Copy link to clipboard

Copied

Is it possible to reset the TOC? Please suggest the steps. Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 14, 2023 Jun 14, 2023

Copy link to clipboard

Copied

Be careful with creating your own Retake Quiz button.  That particular button performs a number of actions that are all required to properly reset a quiz back to a zero score and allow another attempt (as long as the maximum allowed number of attempts has not been exceeded).  It is generally recommended to ONLY use the Retake Quiz button that Captivate provides as this button does everything properly.

 

As for your other issue with the Review Quiz button: Once you click that button Captivate regards your quiz attempt as having concluded.  The Adobe designers viewed entry into quiz review mode (which allows you to view the correct and incorrect answers for each quiz question) indicates you have terminated your quiz attempt.  Otherwise you might be cheating on the quiz by viewing the correct answers and reattempting with that advantage. Only by closing down the module and relaunching again can you initiate a new quiz attempt.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 14, 2023 Jun 14, 2023

Copy link to clipboard

Copied

Thanks for your reply

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 15, 2023 Jun 15, 2023

Copy link to clipboard

Copied

LATEST

 I agree completely with Rod. Try to use the available features of quizzes and tweak them instead of overriding which can lead to unexpected results. Have a look at:

https://blog.lilybiri.com/retake-quiz-tweaks

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources