- Posts: 19
- Thank you received: 4
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
How to pick random questions from a bucket
- francisakabo
- Topic Author
- Offline
- New Member
Less
More
2 years 8 months ago #217964
by francisakabo
How to pick random questions from a bucket was created by francisakabo
I followed this
thread
(
How to pick x random questions from a bucket of y
) to pick 10 random questions from a bucket of 60. I have two groups; group1 has 10 questions and group2 has 50 which I set the relevance equation to 0 and set a randomGroupName to all questions. When I run the survey, it only shuffles the 10 questions in the first group without the questions from the second group.
LimeSurvey Version 3.15.5+181115
LimeSurvey Version 3.15.5+181115
Attachments:
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11758
- Thank you received: 2753
2 years 8 months ago #217968
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic How to pick random questions from a bucket
Very strange. To test, I displayed the second group again, so see what happens. To make it more "chewable" I also deleted all but 5 questions from the second group.
I then copied "randomGroup" into all the fields again, just in case that there is some typo or anything. Q14 for example did not have a randomization group name. But this of course does not explain the problem.
I currently can't really see what you did wrong. Will need a little bit more investigation.
Your version of LS 3.x is quite old (over 2,5 years), but as the problem exists in my installation (Version 3.27.6+210629) as well, it also can be excluded as the problem.
What happens when you create a new survey with 2 groups and just a couple of questions? Maybe some specific setting in your survey causes this problem.
I just gave it a try, built a small survey with 2 groups, first had 3 questions, second had 2 questions, all with the randomization group name of "randgroup" and they shuffled perfectly between the two groups. So something is strange/fishy in your survey, but I don't know what.
I then copied "randomGroup" into all the fields again, just in case that there is some typo or anything. Q14 for example did not have a randomization group name. But this of course does not explain the problem.
I currently can't really see what you did wrong. Will need a little bit more investigation.
Your version of LS 3.x is quite old (over 2,5 years), but as the problem exists in my installation (Version 3.27.6+210629) as well, it also can be excluded as the problem.
What happens when you create a new survey with 2 groups and just a couple of questions? Maybe some specific setting in your survey causes this problem.
I just gave it a try, built a small survey with 2 groups, first had 3 questions, second had 2 questions, all with the randomization group name of "randgroup" and they shuffled perfectly between the two groups. So something is strange/fishy in your survey, but I don't know what.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: francisakabo
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11758
- Thank you received: 2753
2 years 8 months ago #217969
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic How to pick random questions from a bucket
OK, so I reduzed your sample to only 3 questions per group to make it easier to test and change things (it is usually a good practice, start off small, test if things work and then continue, less work to find errors).
I changed the randomization group name to "random" just to exclude that the capital letter wasn't the problem. Far fetched, but you never know. But of course it wasn't the problem.
Then I switched from "all in one" mode to "group by group" mode and it worked. Not sure why it wouldn't work in "all in one" mode though.
I changed the randomization group name to "random" just to exclude that the capital letter wasn't the problem. Far fetched, but you never know. But of course it wasn't the problem.
Then I switched from "all in one" mode to "group by group" mode and it worked. Not sure why it wouldn't work in "all in one" mode though.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: francisakabo
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
2 years 8 months ago #217974
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic How to pick random questions from a bucket
Seems to be an issue : please report.
I use it only in group by group, never in all in one.
I use it only in group by group, never in all in one.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- francisakabo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 4
2 years 8 months ago #217982
by francisakabo
Replied by francisakabo on topic How to pick random questions from a bucket
I switched to group by group and it only showed 2 questions. When I submit, I get the prompt that "One or more mandatory questions have not been answered". I will update my version of LS and try again.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11758
- Thank you received: 2753
2 years 8 months ago #217983
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic How to pick random questions from a bucket
It could be a problem of your version, but I don't think so. Nevertheless, it is a good idea to update, because many other issues might have been solved by now.
Update and test and then come back to us to report.
Update and test and then come back to us to report.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
2 years 8 months ago #217995
by DenisChenu
Di you use the link with newtest=Y ? Can you test with default theme ?
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic How to pick random questions from a bucket
Just tested : seems to be OK (without welcome page) on 3.27.5 .I switched to group by group and it only showed 2 questions. When I submit, I get the prompt that "One or more mandatory questions have not been answered". I will update my version of LS and try again.
Di you use the link with newtest=Y ? Can you test with default theme ?
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- francisakabo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 4
2 years 8 months ago #218011
by francisakabo
Replied by francisakabo on topic How to pick random questions from a bucket
It is working finally! : )
updated to Version 3.27.6+210629, changed format from "All in one" to Group because it was not working with "All in one".
Thank you all.
updated to Version 3.27.6+210629, changed format from "All in one" to Group because it was not working with "All in one".
Thank you all.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
2 years 8 months ago #218022
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic How to pick random questions from a bucket
Please : can you report the issue about All in one ?
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- francisakabo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 4
2 years 8 months ago #218089
by francisakabo
Replied by francisakabo on topic How to pick random questions from a bucket
I saw this late @DenisChenu
When the "All in one" format is selected, I get a shuffle of only the questions in the first group.
When I choose to "Show Question Number", it randomizes question numbers including numbers from the second group but still mapped to the only shuffled questions from the first group. See a sample from the attachment.
PS: I added question numbers to the question text to show this happening.
When the "All in one" format is selected, I get a shuffle of only the questions in the first group.
When I choose to "Show Question Number", it randomizes question numbers including numbers from the second group but still mapped to the only shuffled questions from the first group. See a sample from the attachment.
PS: I added question numbers to the question text to show this happening.
Attachments:
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
2 years 8 months ago #218097
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic How to pick random questions from a bucket
Yes,
I have the same issue and i ask : «Can you report it please ?»
community.limesurvey.org/bug-tracker/
Because when i report the issue : seems i have to fix it …
I have the same issue and i ask : «Can you report it please ?»
community.limesurvey.org/bug-tracker/
Because when i report the issue : seems i have to fix it …
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: francisakabo
The topic has been locked.
- francisakabo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 4
2 years 8 months ago #218168
by francisakabo
Replied by francisakabo on topic How to pick random questions from a bucket
issue reported please. Thank you.
The following user(s) said Thank You: DenisChenu
The topic has been locked.