Feedback on questions
June 1, 2005 12:00 AM
Thanks, that is enough. You have some work to do. The easy part is getting the "immediate" response. The hard part is covering all the bases. Once you get this set up for one question, it is pretty easy to copy and paste for another question. Essentially you check the value of the question variable every second (or less as you like) and see if it has changed.1. The easiest way to make sure the question is answered is to check that box in the Test properties. 2. To get an immediate response here is the solution for either 2005 or 2006. Create a clear text box that is initially visible in an out-of-the-way place on the page. For our purposes here, let's call it the Looping Text Box.Action 1: On Show; Hide itself after .5 secondsAction 2: On Hide; Show itself after .5 secondsAction 3: On Show; Show negative feedback text box and button to try again.; Condition: Answer is not blank AND not correctAction 4: On Show; Show positive feedback text box and button to continue; Condition: Answer is not blank AND correct A problem you have right now is that these boxes continue to show because the loop created by actions 1 and 2 continue to run. To solve that, create one variable you can use for all questions -- let's call it Loop_Now and it will have the values "yes" and "no". 3. At the page level, have an action that sets the value of Loop_Now to yes. 4. Add condition to 1 that requires Loop_Now = yes5. Add an action to the Negative Feedback Text box and Positive Feedback Text box to set Loop_Now = no. This will stop the looping. 6. In the case of the Negative Feedback, when the user clicks try again, you will need to have 3 actions6.a. one to set Loop_Now = yes 6.b. one to set the Question variable to null (empty). I don't know any to reposition the object dragged other than refreshing the page - which is not a bad option - action goto, web address with the URL: javascript:window.location.reload() .6.c. one to Show the Loop text box that actions 1-4 are attached to restart the loop that monitors your question variable for a change.To implement for the next question, copy and paste the 3 text boxes and change the question number in Actions 3 and 4 and of course your feedback box content.If you have a problem, please advise.cheers, ben
Discussions have been disabled for this post