Page 1 of 1

Add progress indicator to a question set?

PostPosted: Tue Jul 22, 2014 4:45 am
by wjones
I have a large question set that will be delivered in random order (75 questions, from a bank of over 100). What is the simplest way to add a progress indicator to tell the learners how many they have completed?

Re: Add progress indicator to a question set?

PostPosted: Tue Jul 22, 2014 9:36 am
by Nav
Hello,
The easiest way to do this would be to use a Number variable to calculate the percentage complete, and then set the percent tracker to that value. If you haven't seen it already, I highly recommend the second part of this video (from 9:58 on) because it talks about doing this exact thing - http://help.smartbuilder.com/node/224 - if you are unfamiliar with Variables at all, start from the beginning.

Your actions will differ slightly because you want to get the information from a Question Set, and not a Drag and Drop. You'll also need two variables, one to count how many questions they have answered, and one to calculate the percentage. Your action will look something like this:

Trigger: Question Set > onQuestionChange (every time a new question is shown)
Response: questionCountVar > add > 1 (increment the number of questions they have answered)
Response: percentComplete > setValue > Function > Variables > questionCountVar > getValue (load that count into the percentageVar, so you can start doing math on it)
Response: percentComplete > divide > 75 (divide by the total possible, in this case 75)
Response: percentComplete > multiply > 100 (you will get a decimal value like "0.50", and want to turn that into "50")
Response: Pct Tracker object > setValue > Function > percentComplete > getValue (finally, update the Pct Tracker object now that you've calculated the appropriate value)

Hope that helps! If anything is unclear, let me know.

- Nav

Re: Add progress indicator to a question set?

PostPosted: Tue Jul 22, 2014 9:42 am
by wjones
Thanks, Nav, that's exactly what I need!

Not able to open ./cache/data_global.php