Use checkbox widget to create a total
Copy link to clipboard
Copied
I woud like to be able to use the checkbox widget with variables & advanced actions to create a calculated total.
I have preassigned dollar amounts for each item I've added to the checkbox widget. I created a variable for each item (tied it in on the checkbox widget) and in the variable "Value" field I assigned the dollar amount I need each one to be.
Based on which items the user checks in the checkbox widget, I want the items checked to equal 1 total at the end. Where I am caught, is how do I write the advanced action to add up all the assigned totals for each item checked off and then total those to one field? I did assign a variable to the box where the total should be.
I think I'm definitely stuck in the "advanced actions" step. I've attempted several advanced actions and they are not pulling a total in the box.
Below are screen shots of what I've done...I'm a novice variable / advanced actions user so I need detailed assistance please
Copy link to clipboard
Copied
Did you read my blog post about using checkboxes? http://blog.lilybiri.com/widgets-and-custom-questions-part-1 and http://blog.lilybiri.com/extended-widgets-for-custom-mcq-and-tf-questi ?
Those variables associated with the checkboxes will store the chosen answer. It has no sense to assign a value to them, you misunderstand what they are meant to store.
Copy link to clipboard
Copied
Yes I did check your blog, and thought it was going to be exactly what I needed. It was an older version of Captivate (I'm on 7) and it added 1 for each correct answer...so it is close to what I'm attempting, but didn't give me everthing I needed.
I need to be able to assign a specific number to each check box, then write an action script that will add the specified number for each check box marked into one total.
Almost like a shopping cart. If I check these 3 items, each item gives me a total shopping bag dollar amount at the end.

