Hi,
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.
Many thanks,
Nick
Hi Nick,
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.
Lilybiri
Hi Lilybiri,
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
Continue
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.
Many thanks,
Nick
Hi Nick,
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:
http://kb2.adobe.com/community/publishing/862/cpsid_86299.html
http://kb2.adobe.com/community/publishing/871/cpsid_87182.html
Lilybiri
North America
Europe, Middle East and Africa
Asia Pacific