Skip to main content
Participating Frequently
January 22, 2016
Answered

Creating conditional actions based on quiz results

  • January 22, 2016
  • 1 reply
  • 1584 views

I have a quiz at the end of my captivate file and I am trying to get it to show different images based on whether you have passed the quiz or if you've failed. For example if you pass I'd like it to show a tick image, and if you fail a cross image, on the results slide.

I have tried to create this by setting up a conditional action. I have put both images on the slide and hidden them. Then I have a conditional action set to:

IF
cpQuizInfoPointsscored  greater or equal to  70

ACTION

Show Image_tick

ELSE

Show Image_cross

When I play the quiz neither image shows whether I pass or fail (the quiz is set to a 70% pass mark – there are 10 questions and all are worth 10 points)
I'm new to captivate so any help would be much appreciated!
Thank you

This topic has been closed for replies.
Correct answer Lilybiri

Each action has to be triggered by 'something', which is an event. You have to attach it to an event, I suspect that the On Enter event of the score slide is the best one. Select the score slide, look in the Properties panel, Actions tab, Execute Advanced Action for On Enter, choose the action.

Moreover, there is a difference between the system variable cpQuizInfoPointsscored and cpInfoPercentage. Personally I would use the much simpler cpQuizInfoPassFail:

IF cpQuizInfoPassFail is equal to 1

   Show tick

Else

   Show cross

Download the tables in these two articles:

System variables in Captivate 8/9 - Captivate blog

Events and (advanced) Actions - Captivate blog

1 reply

Lilybiri
Legend
January 22, 2016

Which event do you use to trigger the action?

alisons3Author
Participating Frequently
January 22, 2016

I don't know what that means! Sorry, I've never used captivate before this week and I'm not used to writing any kind of scripts or actions!

Could you explain a bit more what you mean? Or maybe I should have asked if anyone can explain to me the best way to achieve what I'm trying to do? In a very slow and simple step by step way!!

Thank you for your reply

Lilybiri
LilybiriCorrect answer
Legend
January 22, 2016

Each action has to be triggered by 'something', which is an event. You have to attach it to an event, I suspect that the On Enter event of the score slide is the best one. Select the score slide, look in the Properties panel, Actions tab, Execute Advanced Action for On Enter, choose the action.

Moreover, there is a difference between the system variable cpQuizInfoPointsscored and cpInfoPercentage. Personally I would use the much simpler cpQuizInfoPassFail:

IF cpQuizInfoPassFail is equal to 1

   Show tick

Else

   Show cross

Download the tables in these two articles:

System variables in Captivate 8/9 - Captivate blog

Events and (advanced) Actions - Captivate blog