Skip to main content
Participating Frequently
March 10, 2016
Answered

Create button to reset quiz

  • March 10, 2016
  • 2 replies
  • 6918 views

In Adobe Captivate 9, is there a way to create a button that emulates what the Retake Quiz button on the Quiz Results slide does? That is, it resets all the quiz questions to unanswered and allows the user to take the quiz again. In my project I wish to hide the Quiz Results slide but still have a way for the user to retake the quiz.

Correct answer TLCMediaDesign

If it is an HTML5 project, create an advanced action, execute this JavaScript, cp.resetQuizData(); then execute an action to jump to the first quiz slide.

2 replies

TLCMediaDesign
TLCMediaDesignCorrect answer
Inspiring
March 11, 2016

If it is an HTML5 project, create an advanced action, execute this JavaScript, cp.resetQuizData(); then execute an action to jump to the first quiz slide.

gerkowAuthor
Participating Frequently
March 11, 2016

This worked beautifully, thank you!

RodWard
Community Expert
Community Expert
March 12, 2016

Actually I discovered another alternative to this problem this week.

I had to make it impossible for the users to click on the Continue button on the Quiz Results slide until they had passed the assessment.

What I ended up doing is placing the Retake Quiz button ON TOP of the Continue button so that it completely covered both the Review Quiz and Continue buttons.  If the Continue button is at the top of the stacking order, simply turn on the Align toolbar in the Windows menu, select the Retake Quiz button and bring it to the top.

So now all the learner can click on until they pass the quiz is the Retake Quiz button.  Once they pass, then the Retake Quiz button no longer appears and they can choose to either Review Quiz or hit Continue to submit their score to the LMS.

Seems to work fine.

Lilybiri
Legend
March 11, 2016

I don't know a workaround, but can you explain why you want to hide the Quiz results slide? You can customize it as much as you want, you need to keep the Continue button but can make it 'invisible' by changing the look and label of that button. All fields with scoe results can be unchecked in Quiz Preferences, you can add static objects etc. This workaround is not an 'emulation' but maybe it will do the trick?

gerkowAuthor
Participating Frequently
March 11, 2016

I want to create branching based on pass/fail and number of attempts. Clicking Continue on the Results slide allows the user to end the course without having passed the quiz. Maybe hiding the Continue button based on conditions will work. Thank you.

Lilybiri
Legend
March 11, 2016

Not hiding, make it invisible (delete the label, choose a completely transparent button). As David (TLCMediaDesign) mentioned; his perfect answer will not work for SWF output probably.