- Posts: 23
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Export the order of question options
- nadica123
- Topic Author
- Offline
- Junior Member
Less
More
4 months 1 week ago #253364
by nadica123
Thank you!
Replied by nadica123 on topic Export the order of question options
Yes, I did it like that, I'm guessing that is why it wasn't working, when I disabled that I got it to work, although now I get the question shown in the survey. Is there another way in which I can hide the question but still have the order written to it?How do you hide the question? Via the GUI with "always hide this question"?
This won't work because if the question is hidden this way, it does not appear in the source code and thus Javascript can not write to it.
Thank you!
Please Log in to join the conversation.
- nadica123
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 0
4 months 1 week ago #253365
by nadica123
Replied by nadica123 on topic Export the order of question options
I managed to make it work, the problem was I made the question hidden in the GUI. Is there a way I can hide the question but still have it record the order?
Thank you.
Thank you.
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12940
- Thank you received: 3979
4 months 1 week ago #253371
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Export the order of question options
You have to hide it by css.
Enter "d-none" in CSS classes.
Joffm
Enter "d-none" in CSS classes.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- nadica123
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 0
4 months 1 week ago #253386
by nadica123
Replied by nadica123 on topic Export the order of question options
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.
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.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12940
- Thank you received: 3979
4 months 1 week ago - 4 months 1 week ago #253391
by Joffm
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.
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
Replied by Joffm on topic Export the order of question options
Of course it doesn't work.since the survey is shown question by question,
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.
In my post I showed only "single question" and "multiple question", no array.For question type 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: 4 months 1 week ago by Joffm.
Please Log in to join the conversation.
- nadica123
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 0
4 months 1 week ago #253426
by nadica123
Replied by nadica123 on topic Export the order of question options
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!
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.