Using Widgets for Custom Questions
[an error occurred while processing this directive]
Home /
Community
Index
Community
Publishing
Using Widgets for Custom Questions
Created:
2011-02-22
Last Updated:
2011-02-23
by
GOAL
User Level:
In this blog posting: Widgets and Custom questions-part1I provided a step-by-step explanation for the creation of
Multiple Choice Questions and multiple True/False questions on one slide, using the widgets Radiobuttons and
Checkboxes that are available with Captivate 5. To calculate the scores, to enable reviewing/retaking the quiz, I used
variables and Advanced actions. In this article you'll find a detailed explanation about them.
Intermediate/Advanced
Products:
Adobe Captivate
SAMPLE SWF
NEED MORE TIPS AND TUTORIALS?
Search Community help...
Play this movie in order to understand the workflow. It has 5 slides: after the introduction slide you have 3 question
slides and the last slide is the Score slide. In the question slides you can have some explanations about scoring and
correct answers if you hover the cursor over the Title of the slide.
Content on this page requires a newer version of Adobe Flash Player.
VARIABLES TO BE CREATED
For the used widgets these variables had to be created
For the first question slide, labeled MultiTF (multiple True/False), I used the widget Radiobuttons4 times. Each widget has
an associated user variable, they are labeled TF1, TF2, TF3, TF4
For the second question slide, labeled MCQ1 (Multiple Choice Question with one correct answer),I used the
widgetRadiobuttonsonce and its associated user variable is labeled MCQ1Answer
For the third question slide,labeled MCQM(Multiple Choice Question with multiple correct answers),I used the
widgetCheckboxesonce and the associated user variables are labeled Ac, CP, PS, RH, SB
The global user variables used in the project are:
v_TFScore, v_MCQ1Score, v_MCQMultiScore that will store the individual question scores
v_total that will store the total score
v_percent that will store the percentage to be calculated
v_try is a boolean variable with an initial value of 1; this indicates that the user will be able to take the quiz (Try Mode); it will
be set to 0 if the user reviews the quiz (Review Mode)
TRIGGER EVENTS
In the blog posting you will find a list with the objects on the Question slides. The Advanced actions, explained further,
will be triggered by these events:
InitTF, a conditional advanced action, is triggered on entering the slide MutliTF: it will check if the variable v_try is in Try or
Review Mode and act accordingly
[Link] 9:20:43 AM]
Using Widgets for Custom Questions
InitMCQ1, a conditional advanced action, is triggered on entering the slideMCQ1: it will check if the variable v_try is in Try or
Review Mode and act accordingly
InitMCQM, a conditional advanced action, is triggered on entering the slideMCQM: it will check if the variable v_try is in Try
or Review Mode and act accordingly
TFSubmit, a conditional advanced action, is triggered when the user clicks the Submit button BtSubmitTF, will calculate the
score and store it in v_TFScore, and show Feedback + Score
MCQ1Submit, a conditional advanced action, is triggered when the user clicks the Submit buttonBtSubmitMCQ1, will
calculate the score and store it in v_MCQ1Score, and show Feedback + Score
MCQMSubmit, a conditional advanced action, is triggered when the user clicks the Submit buttonBtSubmitMCQM, will
calculate the score and store it in v_MCQMScore, and show Feedback + Score
Percent, a standard advanced action, is triggered on entering the Score slide and calculates the total score (v_total) and the
percentage (v_percent)
Retry, Review, two simplestandard advanced actions, triggeredwhen the user clicks on the button btReview/btRetry; they
set the status (v_try) and restart the quiz
ADVANCED ACTIONS
InitTF (conditional)
This action has only one decision: it checks the status of the variable v_try to see if the user is in (Re)try-mode or in
Review-mode. The actions to be performed in Retry mode (that will also be the actions when the user takes the quiz
for the first time, since the user variable v_try is initially set to 1) are:
(re)set the score of this question slide to 0
reset the total score to 0 (sorry, this could also be done with a simple Assign, was playing a little bit)
hide both the text caption with the score and the text caption with the feedback
show the button to submit (I need this action because eventually it could have been hidden if the user reviewed the questions
before retrying)
InitMCQ1/InitMCQM (conditional)
Those actions are similar to InitTF with one exception: the Expression to reset the total score is not needed anymore.
Of course you have to adapt the question specific objects used: the variable v_TFScore, the Text Captions
ScoreTF/TFFeedback and the button BtSubmitTF. Here is an example: the THEN script for InitMCQ1:
[Link] 9:20:43 AM]
Using Widgets for Custom Questions
TFSubmit (conditional)
This action has 5 decisions: 4 for each Radiobutton (decisions are labeled TF1, TF2, TF3, TF4) that are real conditions,
and one that is a mimicked standard action that always will be performed but needs to be the latest decision because it
will show the result of the calculations in the first four decisions.
Decision TF1 (TF2, TF3, TF4 are similar)
The correct answer for the first question is True. The user will get 2 points for this correct answer. The addition of the
statement Continue is necessary because the playhead has to conitnue on the Timeline to have the Submit button
hidden and the Continue button showing. I arranged both buttons on the Timeline instead of playing with Hide/Show
actions.
This is the script for an incorrect answer, that results in a guessing correction of -1point:
Decision Show
[Link] 9:20:43 AM]
Using Widgets for Custom Questions
Only after checking the first 4 decisions will the score be exact, this last decision is simulating a standard action,
showing both the Feedback Text Caption and the Text Caption with the score.
Percent (standard action)
This action calculates the total score. Since you cannot combine multiple arithmetical operations in one statement,
three Expressions are needed for this calculation. The percentage is calculated next, the maximum score in this
example is 14. If I was storing the question slides in a template, I would rather create an extra user variable (like
v_max) to store this maximum.
Retry (standard action)
This is a real simple action. Slide MultiTF is the second slide in the example, but I had another hidden slide in the
project, that is why you see it indicated as slide 3.
Review (standard action)
This action is very similar to the Retry action
[Link] 9:20:43 AM]
Using Widgets for Custom Questions
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License
Choose your region ProductsDownloadsLearn&SupportCompany
Copyright 2016 Adobe Sysems Incorporated. All rights reserved.
Terms of Use | Privacy | Cookies
[Link] 9:20:43 AM]