Adding to variable checkbox tick problem
November 3, 2006 12:00 AM
All that you want is relatively easy in Lectora. But first many things. Rather than completely solve your problem (give you a fish) I hope to give you some info that will help your solve more of your own as you go forward (teach you to fish.)1. When trying something you have not done before, try with just a couple of samples not 66 buttons. This shortens the testing work. I would have started with one row/case of 6 buttons and gotten it to work first. Then done the other 10 rows of 6 buttons to work by copying the first one and changing it slightly.2. You only have actions for 2 of the 4 possibilities.a. happened & planned forb. happened & not planned forWhat about the other two? How do you want them to be scored or included in your score? c. not happened & planned ford. not happened & not planned forWhat are you going to do if either of these happen?e. the happened is not answeredf. the planned is not answered?The point here is that you are trying to address the technical side before you have worked through the logic side - at least in your explanation above.3. I am NOT at all sure at this point that radio buttons are your answer. If you are going to use them, you need to understand how radio button groups work. It is clear you are missing that part. Either look at my Tips and Tricks Repository (Lectora Toolkit) on line or download it. Look under the questions and forms section. Tool Kit HTMLLectora Tool Kit Source zippedOnce you see what the form variable is set to as you check the buttons, you will see that all of the actions you put on the buttons are unnecessary because you set the value of the group button by setting the proper values of the buttons.If we decide to use radio buttons, and that is a big if, how could we name them differently and eliminate all the On Select/Change actions?4. There are some severe limitations re. retained variables unless you are using an LMS. I would not retain all the variables like you have done. You will soon exceed the 4K limit and things will just go crazy. In your case the way you have it right now, each variable takes the number of letters in the variable name plus 1 for each of "=", its value, and a comma to separate it from the next variable. So you have used up close to 1000 characters already. If you have any more of these, oops.5. Why do you have a separate button for compute and display?6. Finally, you still did not state what version of Lectora you are running. The final solution will depend significantly on which one you use. Please provide that info.
Discussions have been disabled for this post