I am creating a form of quiz that doesn't use the standard Adobe Captivate (5.5) quiz slides. I am getting the learner to self-mark and enter the score into a text entry box in a TextAreaWithVariable. The scores are then displayed on the final page in the corresponding TextAreaWithVariable text box.
I would like Captivate to add up the scores on this final page. I read somewhere that you use Advance Actions so when the learner enters the page it triggers the calculation using the Expression action. The problem is that that when setting up the action, it doesn't recognise the three TextAreaWithVariables on the page. They are all named but the action does not pick them up.
Could anyone please let me know where I am going wrong here.
I have been blogging about using the TextArea with Variables by Jim:
In the article referenced to in this post you'll find the explanations in detail for the advanced actions that I used.
But I'm a bit afraid that I need some more information:
How do you trigger the advanced actions to calculate the sum? I would propose that you use the On Enter action of each slide after the first question slide to calculate the temporary sum. Trying to explain:
If you do not need to keep the individual scores of each question, you could even re-use only one variable v_quest that would be associated with all the widgets except the one on the score slide and you could reuse the advanced action on each slide without editing.
For some reason, it doesn't work.
I just wanted to check, in the score slide, I include the advanced action:
Expression v_sum = v_sum + v_quest3
v_sum is a text entry box, so the calculated number should appear in here?
In properties, the 'Show text box frame' tick box is selected, but the
others aren't (retain text, password field, validate user input). Also on
the score slide are the three individual scores contained in
textareawithvariables text boxes.
I understood that you used also the TextArea enhanced widget from Jim Leichliter there? You cannot control what is showed in a TEB, you'll need to have the variable widget from Jim for that. But why do you use a TEB to show a result?
I finally worked it out and it is now absolutely fine.
Thank you for your help. I should have been displaying the score in a
variable embedded in a text caption. That made the difference.
We live in different time zones, was sleeping when you asked last question. But this is wonderful: now you figured it out alone and think it will never be forgotten.
Perhaps have a look at my two articles about using variables:
Europe, Middle East and Africa