Skip to main content
3dward66
Inspiring
March 21, 2017
Answered

CP9 -- Show image based on pass or fail of quiz

  • March 21, 2017
  • 1 reply
  • 673 views

I am trying to show the learner one image on the results slide if they pass the quiz and a different one if they failed.

I put 2 images on the slide, and changed them both to not visible on output. I then put that on Enter, to Execute Shared Action to show the "success" image if the score passing percentage exceeds 75, and the "fail" message if not.

Seems logical, but can't get it to work. Always shows the "success" image. Any suggestions?

This topic has been closed for replies.
Correct answer Lilybiri

Indeed, that was my 'intuition'. You are just using the wrong system variable. That system variable is the 'passing score', which is set, as you told in the first question, to 75%.

I would have used either cpQuizInfoPassFail, which is the easiest one because it is a Boolean variable: pass will set it to 1, fail to 0. Other possibility is cpQuizInfoPointsscored, which is the total points scored by the user, or cpInfoPercentage which is the percentage acquired by the user.

If you had read this recent blog post, you could have saved some time:

Using Quizzing System Variables - Captivate blog

1 reply

Lilybiri
Legend
March 21, 2017

Something will be wrong with your action, please post a screenshot of the script.

3dward66
3dward66Author
Inspiring
March 21, 2017

Thanks!

Lilybiri
LilybiriCorrect answer
Legend
March 21, 2017

Indeed, that was my 'intuition'. You are just using the wrong system variable. That system variable is the 'passing score', which is set, as you told in the first question, to 75%.

I would have used either cpQuizInfoPassFail, which is the easiest one because it is a Boolean variable: pass will set it to 1, fail to 0. Other possibility is cpQuizInfoPointsscored, which is the total points scored by the user, or cpInfoPercentage which is the percentage acquired by the user.

If you had read this recent blog post, you could have saved some time:

Using Quizzing System Variables - Captivate blog