Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Creating conditional actions based on quiz results

New Here ,
Jan 22, 2016 Jan 22, 2016

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

1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 22, 2016 Jan 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

   Sho

...
Translate
Community Expert ,
Jan 22, 2016 Jan 22, 2016

Which event do you use to trigger the action?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 22, 2016 Jan 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2016 Jan 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 22, 2016 Jan 22, 2016

  It works!!

Thank you so much for your help. Absolute life saver!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2016 Jan 22, 2016

You're welcome!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 25, 2016 Jan 25, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 25, 2016 Jan 25, 2016

In fact on closer insepction, it's showing the pass images but they're underneath the fail images

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 25, 2016 Jan 25, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 25, 2016 Jan 25, 2016
LATEST

thanks for this! The situation changed!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources