Tag Archives: Advanced Actions

Advanced Actions in Captivate to Grade a Workflow

After presenting our self paced course at DemoFest in November, it became apparent that we needed to add someway to track if people were actually learning the workflow we are trying to teach.  So we set forth to come up with a way that we could reward those that are able to get the process down within a minimum number of clicks.  Here is the scenario we came up with; at the end of the chapter we would give a quiz that has the students make the clicks as if they are in the software.  We give no direction at first for them to find the click.  If they get the right click in the first 3 clicks they get 10 points.  If they do not get it in the first 3 clicks, a hint caption appears.  Then when the find the right menu option, a hint caption also appears telling them why it is the right click.  When they get the correct click here they get 5 points.  We require a passing grade of 80% of the total points available.  This allows them to “miss” 3-4 clicks in the quiz.

Here is how we did it in Captivate:

First I set up some variables to record the points.  Here is a shot of the user defined variable dialog:

  There are 5 variables in the file:

addtototalpoints – this adds the score of 5 for an answer that comes after the first 3 clicks

correctpoints – this adds the score of 10 points for the correct answer in the first 3 clicks

percentage – this calculates the percentage for the pass/fail of the quiz, this is the percentage number multiplied by 100

percentagenumber – is the decimal number calculated by dividing the totalpoints variable by the captivate variable cpQuizInfoTotalProjectPoints

totalpoints – this is the total points scored in the quiz

With the variables set we now moved creating the items needed on the stage.  First we created two click boxes on each slide.  One for the correct answer and one for the answer after 3 clicks.  The second click box was created with a hint caption to tell the student why they should be clicking the option.  We also created a caption to guide the user that will appear after missing the correct click 3 times.  Once everything was created on the stage the advanced actions were created.  Here are the actions for each slide:

First on entry the slide_enter action is created:

  Each slide has a slide enter action as seen here. The enter action shows the first click box and hides all other items on the stage. Note:  I have also played with setting clickbox1 for 3 seconds and upon a “wrong” answer, having the slide Continue.  Then have the second checkbox start a run for 3 seconds.  It accomplishes the same goal without having to put the enter action.

Here is an image of the advanced action.

Next we created another advanced action if the person did not get the correct clicks in the tries.

This action hides the first click box worth 10 points, shows the caption and shows the second click box worth 5 points.  This action is set on the click box to run after the student has click incorrectly 3 times.

One thing to make sure of when creating the click boxes is the only have the 10 point click box by checking the Add to Total checkbox in the Reporting section of the properties.  If the 5 point click box has the Add to Total checkbox clicked, the points will be added to the total number available for the quiz.  This is not what we want, if we have 8 side we want 80 points to be the best score (10 points for each slide).

See below for the actions:

Now that each slide is set with the slide entities, advanced actions are used to add the score.

  Here you can see the two actions that were added to the clickbox.  The Correctpoints action simply takes the correctpoints variable and adds 10 points to it.  So the variable is simply correctpoints = correctpoints + 10.  The second action Incorrect_slide# simply hides the correct click box and shows the incorrect text box an the caption.

The incorrect clickbox uses the following actions:

  The AddPointstoTotal action simply adds 5 points to the total by using the variable.  So the action is AddPointstoTotal = AddPointstoTotal + 5 and Go to next Slide to advance to the next slide.

Once all the slides are set, we get to scoring the quiz.  On the last slide there is the action set below to total the score:

Here you can see the core being set using the variables from earlier in the post.  This is set on slide entry for the last slide which is the scoring slide.

The final action is used to set the pass fail option.  It is a conditional action to set a pass/fail message.  The action is shown here:

If the percentage is greater than 80 the Pass caption is shown.  If the percentage is less than 80 the Fail caption is shown in the Else condition.

Hopefully this makes sense.  If you have any questions please let me know.  Also any suggestions on how I might be able to this in a more streamlined or better fashion please let me know.  I will try to get a file uploaded in the next few days.


Posted by on January 22, 2012 in Captivate


Tags: , , ,