Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Export the order of question options

More
1 year 8 months ago #253386 by nadica123
Thank you!

This seemed to work, although I am finding an issue now, since the survey is shown question by question, after the question it should record the order for I get a blank screen and then after clicking next it will show the next question. This doesn't happen if I run the survey as a whole question group, but I need to show it question by question. Any suggestions for that?

Also, will the code you've shared previously work for randomized subquestions? For question type array, the answer options here are not randomized, just the subquestions (for which I would need to record the order)

Thanks again.

Please Log in to join the conversation.

More
1 year 8 months ago - 1 year 8 months ago #253391 by Joffm

since the survey is shown question by question, 

Of course it doesn't work.
Always remember: javascript runs on the participant's machine. How can it write something into a question that is not loaded?

Therefore we always recommend to show "group by group" but put only one question into each group.
This gives you the flexibility to display one question per page, but at the same time you can use these workarounds that require several questions in one group.

For question type array,

In my post I showed only "single question" and "multiple question", no array.
But you may try to adapt it.
If you investigate the page with the webdevelopment tool of your browser (F12) you see
that in arrays there is a row (tr) and a answers-list.
 
The rest is equal.
 
Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 1 year 8 months ago by Joffm.

Please Log in to join the conversation.

More
1 year 8 months ago #253426 by nadica123
Thank you Joffm,

I made it work, by doing what you suggested, adding each question in a seperate group, as well as for the array question.

Thanks again for the support.

Have a nice day/evening!

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose