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

Hide / Show Text Caption Based on Click Box Points CP4

Guest
Nov 16, 2011 Nov 16, 2011

My project includes a "Main Menu" slide that has 9 different options to click.  The user can select any of these options (highlighted in red box) as they choose in any order (non linear). Each option has it's own click box. Each click box is worth 10 points added to the total. When the user clicks one of the options the course jumps to a specific slide. After the user reviews the section they click another click box to return to the main menu, this page below. The main menu page has an "Exit" text caption near the top with it's own click box over it. When clicked it will route the user to the end of the project. I want the Exit text caption to be visible until the user clicks all 9 of the options / click boxes and have a total score of 90. Once this takes place, I want to hide the Exit text caption and disable it's click box. I then want a new text caption - Complete Course to appear with a click box over it, so when the user clicks this option they are routed to a different end slide, saying they've completed the course in its entirety.

I went to Quiz preferences selected 90 points as the passing score. Under the if passing grade option I selected multiple actions option. I then selected the Exit text box and correlating click box to hide and disable. I also selected the Complete Course text caption and corresponding click box to show and enable. I unselected the visible option for the Complete Course text caption and for its click box. When I play the course in preview mode, the exit caption does not hide nor does the Complete this course caption appear.

Any thoughts or suggestions would be greatly appreciated. The overall purpose of having the 2 different text box options is that the exit goes to a screen telling them how to exit. Whereas the complete course routes to a different slide stating that they've successfully completed the course.

Course Routing.png

Regards!

1.3K
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
Advocate ,
Nov 16, 2011 Nov 16, 2011

it can be done with advanced actions.  You've got it halfway there, but you need to tell the slide "after 9 clicks, hide this stuff and show this other stuff." 

Here's how I'd do it, and I'm just going to speak in general terms because I don't have Cp4 on my desktop to test it with.

First, create a user variable for each of the 9 sections

var_sec1Complete

var_sec2Complete

...

var_sec9Complete

On the last slide of each branch, insert an advanced action to set the value of that variable to 'y'

Create the advanced action:

Assign (might be different in Cp4) var_sec1Complete with y

jump to 'menu slide' (the one you picture above)

Do that on each of the 9 slides.

On your menu slide, you need an adv action to check those 9 variables, and if they're all 'y' hide the 'exit' caption and click box, and show the 'complete' caption and click box.

so it'd look something like:

If

var_sec1Complete = y  AND

var_sec2Complete = y AND

...

var_sec9Complete = y

Actions

Hide Exit caption

Hide Exit click box

Show Complete Course caption

Show Complete Course click box

Continue

Else (I don't remember if there's an 'else' option in Cp4)

Continue

Hope that helps, it should at least give you something to build off. 

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
LEGEND ,
Nov 16, 2011 Nov 16, 2011

Andy gave you a very detailed solution.


Just pop in to warn you about 'Multiple actions', a feature that disappeared in later versions. One of the reasons is that Multiple actions not always function well. I already learned in CP4 to replace them always by an advanced action.

Lilybiri

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
Advocate ,
Nov 17, 2011 Nov 17, 2011

i forgot to mention, doing it the way I described, you don't need to keep track of the score.  Unless you are using the score for something besides triggering the 'complete' caption, scoring the clickboxes is pointless using the method I described.

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
Guest
Nov 17, 2011 Nov 17, 2011

Thank you very much for taking the time to help me through this process. I think I'm getting this but have a couple of questions. Below is the advance action dialog box for the menu slide. Does this look correct? Should this script be added to the Enter or Exit option?

11-17-2011 4-06-03 PM.png

Now when I preview the course, I'm receiving the following error message. I believe this is because I have an error in the script.

11-17-2011 4-12-07 PM.png

Regards! Your help is greatly appreciated.

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
Advocate ,
Nov 17, 2011 Nov 17, 2011

I haven't used Cp4 in a while, but your action looks correct.

You would run that on slide enter.

As for the message, I'm sorry I don't know.  You could try publishing and see if you get the same error.  If you click "no" does it run OK?

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
Guest
Nov 17, 2011 Nov 17, 2011

I've just re-created the script so that it reflects the following and the error message disappeared. However, the script isn't working. The exit text caption remains after all nine sections have been reviewed and the course complete does not appear.

11-17-2011 5-09-43 PM.png

I just want to make sure that I created the variable and then the advance actions correctly. After creating the var_sec1Complete variable (9 times, just changing section number), I then went to each section's last slide. I created an advanced action attaching it to the click box to go back to the main menu slide. I named each advance action as such; CompSec1, CompSec2 and so on. Each advance action has it's corresponding variable = y (screen shot below). I've also kept the Course Complete Text Caption and click box not visible on the main menu slide whereas the Exit Text Caption and click box is visible. 

11-17-2011 5-11-59 PM.png

Thank you for your input this far, it's been very helpful.

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
Advocate ,
Nov 17, 2011 Nov 17, 2011

and slide 5 is executing the CompleteCourse action On Enter?

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
Guest
Nov 28, 2011 Nov 28, 2011

Thank you for your help!!! Through trial and error and going back through your detailed instructions, I was able to get this to work!!!! This is my first stab at advance actions and finding just how much they can add to the end user learning experience.

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
Advocate ,
Nov 28, 2011 Nov 28, 2011
LATEST

I'm glad it helped.

What was the 'trick' to get it to work?  Anything specific?

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