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

Quiz problems

New Here ,
Aug 01, 2022 Aug 01, 2022

Copy link to clipboard

Copied

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?

TOPICS
Advanced , Advanced actions , Quizzing and LMS

Views

206

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 ,
Aug 01, 2022 Aug 01, 2022

Copy link to clipboard

Copied

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 🙂

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 ,
Aug 01, 2022 Aug 01, 2022

Copy link to clipboard

Copied

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.

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 ,
Aug 01, 2022 Aug 01, 2022

Copy link to clipboard

Copied

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.

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 ,
Aug 01, 2022 Aug 01, 2022

Copy link to clipboard

Copied

I certainly appreciate your patience and help. No apologies needed. So, now it's repeating the quiz over and over and doesn't go to the first slide after the 2nd failed attempt at the quiz. Just to recap. I've got a course with a quiz at the end. On the first slide of the quiz I've gone to Properties and On Enter in Script I clicked the yellow folder and tagged conditional tab. On first line I have IF cpQuizInfoAttempts is greater than 2, the line underneath I have IF cpIntoLastVisitedSlide is equal to Slide 250 (I also tried simply "250")  - (My Quiz Results page) - wasn't sure if I needed the word "Slide".  Then in Actions I have Jump to Slide 1, and then under ELSE I have Continue. Either way, 250 or Slide 250 it just keeps coming back to the first slide of the quiz. I want it to go to the first slide of the course and then move through it and eventually to the quiz. 

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 ,
Aug 01, 2022 Aug 01, 2022

Copy link to clipboard

Copied

Can you please show a screenshot of how you have set up your Conditional Action?  Your description seems to indicate you have two conditions, one related to cpQuizInfoAttempts and the other using cpIntoLastVisitedSlide but you haven't indicated whether or not these conditions are AND or OR.  A screenshot would help.

 

If you are not very experienced with Captivate's advanced actions it's quite easy to get confusing results.

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 ,
Aug 02, 2022 Aug 02, 2022

Copy link to clipboard

Copied

Screenshot.png

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 ,
Aug 02, 2022 Aug 02, 2022

Copy link to clipboard

Copied

We are clearly in different time zones.  I probably wrongly assumed that you were used to create advanced actions since you were asking about JS (which is a level higher). Your advanced action in the Preview window (which you access using the arrow button in the top right control panel of the Advanced Actions dialog box should look like this:

Attempts1.PNG

My results slide was slide 10. Normally I would have created that action if I was aware of your problems with advanced actions, but it was close to midnight when I posted my previous answer and... was bit tired.

You don't need a string for the system variable cpInfoLastVisitedSlide, just a number. Maybe download the explanatory table which I included in this blog post:

http://blog.lilybiri.com/discover-slash-use-captivates-system-variables-part-1

 

Another warning: you didn't mention if you do use the Review functionality, because in that case you'll need another conditional action. I will post - with a screenshot - if that is the case. 

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 ,
Aug 02, 2022 Aug 02, 2022

Copy link to clipboard

Copied

I know just enough about Captivate to get myself in trouble. 🙂  This is the first time I've used Advanced Actions. It's a whole new world. I found the JS fix on YouTube, but like I mentioned, when I used it, it wouldn't allow the user to pass the test, so I started doing Google searches and found this forum.

 

So, I've found the arrow and I have the same thing. Slide 250 (yes, this is a large eLearning) is the slide that has the Quiz Results. I've put this advanced action on the Quiz's first slide. Here's what I have below. I'm not sure what you mean by the Review functionality, unless you mean going up to Preview > HTML5 in Browser to see if this works. Or whether you mean in Quiz Settings "Review Mode Navigation Buttons" is checked, which it is.

Screenshot 2.png

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 ,
Aug 02, 2022 Aug 02, 2022

Copy link to clipboard

Copied

OK, that is indeed a problem, that you never used advanced actions before. You may think about having a personal training. Have a look at my blog, plenty of advanced action use cases in it.

If you use the Review functionality, maybe you could try this conditional action, still on the first question slide Enter event.

Attempts2.PNG

Beware: this time I used the combination 'Any of the conditions', hence the pipe symbol instead of the double ampersand.

This means that the jump to the start of the course will only happen when the learner is in a third or later quiz attempt, and not in Review mode.

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 ,
Aug 02, 2022 Aug 02, 2022

Copy link to clipboard

Copied

Unfortunately this isn't working. I thought maybe my file was corrupt so I created a simple course with only 4 slides. Slide 1 - the course, Slide 2 - the quiz, Slide 3 - Quiz Results, Slide 4 - Outro Slide. On Slide 2 I created the advacned action shown at the bottom

 

When I previewed it using HTML5 in Browser, here was the behavior: It plays Slide 1, goes to the quiz Slide 2 (which I purposely failed) and Slide 3 tells me I failed and I clicked "Retake Quiz". It goes to Slide 2 (again purposely failing) and Slide 3 tells me I failed again and I clicked "Retake Quiz". It then goes to Slide 1 and repeats Slide 1 over and over again in a loop, never getting back to the Quiz. Same behavior with the initial advanced action suggested.

 

 Screenshot 3.png

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 ,
Aug 02, 2022 Aug 02, 2022

Copy link to clipboard

Copied

I think I may have discovered the problem. I've yet to test it fully, but the first advanced action seems to work now in my test course. I think it might not have worked in my legitimate course because I had some slides hidden. I will unhide them all (I hid them because I didn't want to have to sit through the long course - 167 slides. I'll report back.

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 ,
Aug 02, 2022 Aug 02, 2022

Copy link to clipboard

Copied

I tested the advanced action, created a smaller test project for that purpose. Not very nice to hear that the action is not working on your side. How do you test? If it is without publishing and uploading to a LMS, the only Preview method worthwhile is F11, Preview HTML in Browser. Hidden slides will not be present in the output, they cannot break this advanced action.

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 ,
Aug 02, 2022 Aug 02, 2022

Copy link to clipboard

Copied

A BIG THANK YOU! As weird as it might sound, once I unhid all the slides, the initial advanced action you gave me worked (i.e., number of attempts, etc.) I am equally suprised unhiding slides was an issue, but there it is.  Thank you again for your patience and help. I came on this forum to learn and to solve a problem, as most people, and nice to have learned a little about advanced actions in the process. Thank you for reaching out. There's always so much to learn with any program. 

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 ,
Aug 02, 2022 Aug 02, 2022

Copy link to clipboard

Copied

LATEST

Please as a help for other users with similar issues, mark one or more answers as correct answers.

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