Questionnaire response order after adding responses in dropdown
Re: Questionnaire response order after adding responses in dropdown
This is a know issue with questionnaire. Care should always be taken when modifying the questions of questionnaires that have already been completed by some users. When it was developed, it was assumed that questions would remain mostly static, so that response reports made sense.
The problem with changing choices in a drop down (for example), is there is no easy way to determine if a change is being made to the text of an existing choice, if a choice is being removed, or if a choice is being added. The code assumes position is important, and assumes that if the text changed for an existing position, then that choice's text changed. If the list gets shorter, choices are deleted from the end of the list. If the list gets longer, choices are added to the end of the list.
What needs to happen is that there needs to be a more extensive choice editor, so that selections can be made from defined choices. It is not a small change.
mike
Re: Questionnaire response order after adding responses in dropdown
They were actually able to resolve it (sort of) yesterday with the following quick fix, though it is not a comprehensive solution:
"-Embedded jquery in the HEAD using the form in moodle’s interface
-Used JQuery script in the question body to re-order the options, putting the “Choose…” option on top still.
This only works if any new entries are added to the list at the bottom. Items can’t be removed, though if there is no better solution in the future we may want to just find a way of doing that in javascript while leaving the choice in the database for reporting purposes."It's too soon to know if there are any long term drawbacks to this approach.