Skip to main content
Participant
May 20, 2025
Question

Button to only appear if user fails quiz twice to retale entire course

  • May 20, 2025
  • 1 reply
  • 113 views

Hi all,

 

I am fairly new to captivate classic and need some guidance.

 

I need to add a button to the quiz results slide, that should be hidden unless the user fails the quiz twice. The button then needs to be able to reset the quiz score to be redone and take them back to the beginning of the entire course... does that make sense?

 

In summary:

- hidden button until quiz is failed twice

- resets quiz score and takes user to beginning of course (not just quiz)

 

I would be grateful for any assistance if this is possible?? I have tried, but have had no success as of yet

1 reply

Astro The Goat
Inspiring
May 23, 2025

Hi Nero,

 

You will probably want to make use of "Advanced Actions" and some of the in-built Captivate variables. The Captivate variable "cpInfoQuizAttempts" when used, will return the number of attempts at the quiz.  You can use an Advanced Action when the "Results" slide is entered.

 

The action should have the form of

 

if (cpInfoQuizAttempts >= 2)

{

   /* show "Reset Quiz and Restart Button"

}

 

The "Reset Quiz and Restart Button" will also need an Advanced Action tied to it so that you can..

1. Reset the score - use the Captivate variable "cpQuizInfoPointsscored".

2. Reset the amout of quiz attempts using "cpQuizInfoAttempts".

3. Jump to the Slide that begins the training.

 

Kind regards