- Posts: 88
- Thank you received: 33
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Group randomization issue
- Bigred01
- Topic Author
- Offline
- Premium Member
Less
More
5 years 8 months ago - 5 years 8 months ago #172334
by Bigred01
Group randomization issue was created by Bigred01
I am having a problem with group randomization combined with token based response persistence.
The issue seems to only happen if you have a survey with token response persistence, multiple groups assigned to the same group randomization, partially complete that survey leaving some of those groups unanswered, then re-enter the survey and get assigned a new randomization order. The page renders with your question(s) hidden with the classes "ls-irrelevant ls-hidden input-error".
I am not exactly sure what is happening but you can replicate it with the logic above. You might need to enter in a new private window a few times to get a scenario where it happens.
The issue seems to only happen if you have a survey with token response persistence, multiple groups assigned to the same group randomization, partially complete that survey leaving some of those groups unanswered, then re-enter the survey and get assigned a new randomization order. The page renders with your question(s) hidden with the classes "ls-irrelevant ls-hidden input-error".
I am not exactly sure what is happening but you can replicate it with the logic above. You might need to enter in a new private window a few times to get a scenario where it happens.
Last edit: 5 years 8 months ago by Bigred01.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
5 years 8 months ago #172335
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Group randomization issue
If using the latest version, please file a bug report including a sample .lss (survey export) file.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- Bigred01
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 88
- Thank you received: 33
5 years 8 months ago #172336
by Bigred01
Replied by Bigred01 on topic Group randomization issue
I'm on Version 3.8.1+180529. I just made a fresh install with the latest and it appears group randomization doesn't work at all in 3.14.3+180809 (on groups at least). Ill put something in the bug report when I get a chance. For now we will just remove response persistence since the survey is short.
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
5 years 8 months ago #172344
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Group randomization issue
You mean even without using token the whole group randomization feature is currently not working at all?Bigred01 wrote: I just made a fresh install with the latest and it appears group randomization doesn't work at all in 3.14.3+180809 (on groups at least)
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- LouisGac
- Visitor
5 years 8 months ago #172348
by LouisGac
Replied by LouisGac on topic Group randomization issue
please, could you upload your lss file so we can reproduce?
The topic has been locked.
- Bigred01
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 88
- Thank you received: 33
5 years 8 months ago #172415
by Bigred01
Replied by Bigred01 on topic Group randomization issue
Attached is the lss export and some screen shots.
When group randomization is on, the question number beside the asterisk in the question text does change to a random order, but the groups and their questions are still asked in the same order as they are laid out in the survey. When the group randomization is removed, the question numbers match the questions that show.
I have only tried with on the groups themselves. I have not tried question level randomization inside a group in 3.14.
Fresh install of Version 3.14.3+180809
Using Vanilla theme with ajax mode disabled.
When group randomization is on, the question number beside the asterisk in the question text does change to a random order, but the groups and their questions are still asked in the same order as they are laid out in the survey. When the group randomization is removed, the question numbers match the questions that show.
I have only tried with on the groups themselves. I have not tried question level randomization inside a group in 3.14.
Fresh install of Version 3.14.3+180809
Using Vanilla theme with ajax mode disabled.
Attachments:
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
5 years 8 months ago #172422
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Group randomization issue
I can confirm that the group randomization is not working with this file.
Used version 3.14.2 via demo.limesurvey.org.
Used version 3.14.2 via demo.limesurvey.org.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- Bigred01
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 88
- Thank you received: 33
5 years 6 months ago #175551
by Bigred01
Replied by Bigred01 on topic Group randomization issue
Finally getting back to this.
Every time this issue happens $em->currentQset is populated with the original question one would see without group randomization, but the page is rendering some other groups question as it should with randomization. There is no $lemQuestionInfo set so the rendered question is defaulting to a "generic_question", invalid and hidden and you are unable to proceed next.
Setting newtest=Y seems to correct the em instance so I will use it as a workaround until I fix the issue in my install
Has anyone else happened to figure this one out or have any insight on what the problem might be?
Thanks
Every time this issue happens $em->currentQset is populated with the original question one would see without group randomization, but the page is rendering some other groups question as it should with randomization. There is no $lemQuestionInfo set so the rendered question is defaulting to a "generic_question", invalid and hidden and you are unable to proceed next.
Setting newtest=Y seems to correct the em instance so I will use it as a workaround until I fix the issue in my install
Has anyone else happened to figure this one out or have any insight on what the problem might be?
Thanks
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
5 years 1 month ago #180826
by Mazi
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic Group randomization issue
We have just created a lengthy explanation of the different
Limesurvey randomization features
and that included group randomization. It worked fine for us using the latest Limesurvey version without tokens.
Here is a link to the setup and a link to a sample survey .
You can test the whole sample survey with all randomization features at this link .
Did anyone file a bug report so we can follow the progress and double check if this is now fixed?
Here is a link to the setup and a link to a sample survey .
You can test the whole sample survey with all randomization features at this link .
Did anyone file a bug report so we can follow the progress and double check if this is now fixed?
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
- Bigred01
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 88
- Thank you received: 33
5 years 1 month ago #180827
by Bigred01
Replied by Bigred01 on topic Group randomization issue
Ill make a note to test this.
Group randomization (at the group level) has always worked with no tokens for me. Its just when you mix in response persistence, a new session and a partially answered survey where they stopped in the middle of the randomized groups. It re-randomized the groups putting an unanswered mandatory question before the last question answered, then tried to send you back to the last question answered which resulted in the a group loading with error classes and hidden questions, unable to proceed forwards.
I think I still have my demo survey. I can re-load this to the lime demo site and try to replicate again.
Group randomization (at the group level) has always worked with no tokens for me. Its just when you mix in response persistence, a new session and a partially answered survey where they stopped in the middle of the randomized groups. It re-randomized the groups putting an unanswered mandatory question before the last question answered, then tried to send you back to the last question answered which resulted in the a group loading with error classes and hidden questions, unable to proceed forwards.
I think I still have my demo survey. I can re-load this to the lime demo site and try to replicate again.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- blocka
- Offline
- Platinum Member
Less
More
- Posts: 409
- Thank you received: 34
4 years 10 months ago #185149
by blocka
Replied by blocka on topic Group randomization issue
I just encountered this issue with question group randomization and token based persistence. I had quite a few respondents report issues before I found this thread.
I'm using LS 3.x build 190529 and this is still an issue.
Any thoughts on how this can be fixed?
And if not possible to fix, how about a check during survey activation that displays an alert if question groups are randomized, and tokens are being used?
I'm using LS 3.x build 190529 and this is still an issue.
Any thoughts on how this can be fixed?
And if not possible to fix, how about a check during survey activation that displays an alert if question groups are randomized, and tokens are being used?
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
4 years 10 months ago #185151
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Group randomization issue
Where is the bugreport for that issue? I thought the seed value was introduced to allow routines to make randomization reproducible. The code seems to be not using that value.blocka wrote: Any thoughts on how this can be fixed?
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.