Locking a question's radio buttons after attempt
January 28, 2011 12:00 AM
I'm having an issue that may be the result of the way I have created my question processing and feedback (given that I am a newbie!). I'll try to summarzie:
- I have a multiple choice question set up with no automatic feedback built into the question itself, since I'm doing it manually
- When they click on a Submit Answer button, a series of actions occur: a variable change to 1, the Submit Answer button disappears based on if the variable is set to 1 (so they can not submit their answer again...or so I thought), the feedback based on their answer appears, and a Next button appears to they can go to the next question. I want them to only have one attempt at each question (but can attempt the whole quiz as many times as it takes).
- Everything looked like it was working alright, but it turns out that once I submit the answer, if I click on a different radio button and then click on the Next button (which isn't supposed to do anything other than go to next page), their question answer records as whatever they last selected (not what they selected initially when they clicked on Submit Answer and then saw the feedback for. Sooooo...I'm wondering if there is a way to make the radio buttons inactive after they have been selected once? I don't really want to hide them (would prefer for the user to see which option they selected). I don't want to use pop-ups to provide feedback, so that's now really an option.
I tried playing around with Process Answer and it didn't seem to make a difference...so the question is, what am I doing wrong?
Discussion (4)
I'm using Lectora 17.0.3 and I have this exact same issue.
I see this question is from 6 years ago and there was no response at that time. Does anyone have any advice on how to lock the radio buttons after a question has been processed? I want the user to be able to visit the page and see the feedback, but not be able to change the radio button selection.
Thanks
Amanda
several options for that...
- use a blocker ( transparant png that overlaps the buttons ) that will activate when a question is answered. With a variable that is set when answering the question you can ensure its visible on a revisit.
- use javascript to disable the possibility to click it.
Regards,
Math
Mocked up a easy solution for this. In this version i deliberately use a big red x as blocker. I do like that approach because you then can immediately see if your approach is working and the correct pageelements are blocked. I included a less visible blocker ( blocker2 ) in the Lectora.awt
Thats the kind of blocker i use when finalizing the project.
Regards,
Math
I find using a transparent button works well for this. Also adding an action on the button to show a message saying something like "You have already answered this question. Please click on the Next button to continue.".
Discussions have been disabled for this post