by Lori Smith, COTP
Did you know that Adobe Captivate can perform some pretty high-end math? If you’re new to Captivate, I'll bet that you didn’t! Even if you’ve been using Captivate for eons, asking an eLearning development tool to do calculations is not something that likely comes to mind when starting a project.
Let's say that you need to create an annual healthcare enrollment lesson for your employees. Everyone knows that Open Enrollment time is not exactly the most fun or easy thing to figure out. Employees are given tons of information and often left sorting through confusing documents or boring lecture. Using Captivate, you can create an eLearning lesson with interactive text entry boxes that will help pique the learner's interest.
In the image below, I created a form that allows employees to put in the cost for three selections and then calculate the total by clicking the "Calculate My Cost" button.
Here's how you get the form to work using Captivate. First, add four new user variables via Project > Variables named MedicalCost, DentalCost, RetirementCost, and AnnualDeduction. (Keep in mind that it’s always a good idea to fill in a the default value and description for your variables.)


After you’ve created the variables, ensure each variable is associated with the Text Entry Box. Go to the Properties inspector for each Text Entry Box and select the appropriate variable.

Create an advanced action via Project > Advanced Actions.
I named my Advanced Action calculateMyCost. In the action, I’ve used the Expression command to add my variables together. You can only add two things at a time. so I added the MedicalCost and the DentalCost and saved it in the variable AnnualDeduction. Next, I took that total, AnnualDeduction, and added it to the RetirementCost again (saving it in the AnnualDeduction variable).

That’s it for the action.
The last step in the process is to attach the advanced action to the "Calculate My Cost button" via the Properties inspector.

Was the process I wrote about above intimidating? If you’re not sure what all these variable and action things are, join me for my Variables and Actions series of mini courses. 101 starts off with the basics. We add a new twist to each class, so by the time you finish 401, you’ve got a solid handle on all of the ins and outs of variables and actions... with some great practice along with way.
If you'd like to test out the form for yourself, here's a link.
***

I followed the steps all the way through to the end in the tutorial, but I can't produce a calculation, nor can I view the form (link) posted.
Posted by: ID user | May 29, 2018 at 04:36 PM
Hi there! Sorry to hear that your attempt at the exercise didn't work. You might want to check that you did indeed attach the advanced action to the Calculate button. Another easy oversight is to not have actually attached each of the variables to their proper text entry boxes. Give each of those a try and I'll bet you get it working!
Posted by: Lori Smith | May 29, 2018 at 09:12 PM