Randomized Answers
June 21, 2008 12:00 AM
Well when I did this for a client, the simplest route for me was to do these in Flash and then incorporate it into the Lectora page. It dynamically resized and was basesd off of XML files for really simple translation. 1 SWF file ended up controlling all the questions. You could do it in Lectora, but you would have to build the questions from scratch and not use the traditional questions. It also involves a lot of planning to accomplish.To do this, you would do something like this (This is an overview, to get to started in the right direct):Set up answer holder variables for all the questions. Example: Q1_Answer. Yes its going to be random but you need to keep track of the appropriate answer.Build a question using text fields and form objects. Group the answers. Name the group, P1Answer_Group1. Name the form fields something consistant with group 1. P1Answer1_g1 for example.Duplicate this group, and adjust the answers. Rename the group to P2Answer_Group2. Next change the variable names for the form fields to match: P1Answer1_g2.Repeat for as many combinations as possible.Set all groups to initially not visibleSet up an action on the page level to run "On Show". This will pick a random number that is between 1 and your total options. Next set up an action that will show the group based upon the number that was picked.After this is done you need to do the same with submit buttons. The submit button would need to check the appropriate form field variables and then run the code based upon what you see. Hope that helps point you in the right direction.Edited By: Xithis on 2008-6-21 9:45:56
Discussions have been disabled for this post