Skip to main content
kevinb15716287
Participating Frequently
August 1, 2022
Question

Quiz problems

  • August 1, 2022
  • 1 reply
  • 531 views

I created a course with a quiz. I am giving the user 2 attempts to pass the quiz. After the user fails on their 1st attempt, they get the button Retake Quiz which takes them through the quiz again. If they fail a 2nd time, I created a button "Retake Course" using an advanced action and java script. cp.resetQuizData() and the second advanced action Jump to Slide 1. The problem I am encountering, when the user goes through the entire course again and gets to the quiz, captivate tells them after completing the quiz (now their third attempt) they've failed, even if they get all the answers on the quiz correct. Any way to fix this problem?

This topic has been closed for replies.

1 reply

Lilybiri
Legend
August 1, 2022

Why not use the inbuilt features of quizzes. I often see complicated JS workflows where it can be much easier to use Captivate's features. My proposal:

Change the number of attempts on quiz level to 3 (or more). Let the learner click the Retake button even on second failure, third attempt (or later).

Use the system variable cpInfoQuiz Attempts for an advanced conditional action to be triggered On Enter for the first quiz slide:

    IF cpQuizInfoAttempts is greater than 2

       Jump to slide 1            or another slide which is the start of the course, you may skip the Title slide

   ELSE

       Continue

 

Be sure to allow Backwards movement in Quiz Preferences.

 

More tweaks for Retake in this blog post:

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

 

So often I wonder, why make it complicated if it can be so easy 🙂

kevinb15716287
Participating Frequently
August 1, 2022

Thanks. I'm almost there I feel. I've done what I believe you instructed. I've put quiz preference on unlimited attempts. I've gone to the first page slide of my quiz, and in Properties I have on enter > advanced action with the conditional variable IF cpQuizInfoAttemps is greater than 2 jump to slide 1 ELSE Continue.  After 1st failure it goes to the quiz the second time. Great. The second time they fail it goes back to slide 1. Grea againt. BUT, then  the course repeats and repeats and repeats and won't go forward to the quiz.

Lilybiri
Legend
August 1, 2022

Sorry, my bad.... have answered too quickly. To remediate, you'll need to change the condition to:

IF cpQuizInfoAttempts is greater than 2 AND

     cpInfoLastVisitedSlide is equal to ....            where you need the slide number of the Results slide

 

Now the Jump to slide 1 will only occur when coming from the Results slide, and the quiz slides will load.

 

My apologies for this late replay, had a long meeting.