Determining which boxes are checked
July 16, 2013 12:00 AM
OK, I am totally stumped on how to approach this. I have a page that has 20 checkboxes to choose from, each checkbox corresponding to a physical activity. I want to have the user select three then retain those values until later in the course where they will write a goal for how to improve in the activity. I can't seem to figure out a way to evaluate a group of checkboxes. If I had an array, I would put the checked values into that but I dont think that is possible. Is this just something that should be done in Flash instead?
Thanks,
-jason
Discussion (1)
Each checkbox has a variable that is "on" if it's checked and "" if not. If Checkbox_1 is checked, the associated variable Checkbox_0001 will be equal to "on". The value of that variable will be retained throughout the whole course, as that is what variables exist for ;-). You can check "Retain Value between sessions" if you wish to keep the values for the next time a user opens the course.
If you want an array with the activities, you can e.g. add "Cycling" to a variable, only if "Checkbox_0001" is equal to "on".
Tim
Discussions have been disabled for this post