Copy link to clipboard
Copied
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
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
Sho
...Copy link to clipboard
Copied
Which event do you use to trigger the action?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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:
Copy link to clipboard
Copied
It works!!
Thank you so much for your help. Absolute life saver!
Copy link to clipboard
Copied
You're welcome!
Copy link to clipboard
Copied
Hi, I had it all working but then I added in the option to retake the test if they failed and now when they click 're take' and fill it in achieving a pass grade it doesn't show the correct images (it still shows the fail images).
Do I need to have a different action now? Thanks
Copy link to clipboard
Copied
In fact on closer insepction, it's showing the pass images but they're underneath the fail images
Copy link to clipboard
Copied
If you offer the whole situation, this could have been avoided. I just gave you an answer to the question that you formulated.
Change the action to this:
IF cpQuizInfoPassFail is equal to 1
Hide cross
Show tick
Else
Hide tick
Show cross
Copy link to clipboard
Copied
thanks for this! The situation changed!