- Posts: 14
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Random groups but force two groups to occure together
- rakittam
- Topic Author
- Offline
- New Member
I need some advice on group presentation.
My question groups need to occur randomly, so I assigned them to "randomization groups", and this works fine. However, I also need for one of these question goups, call it A, that it is always followed by the same question group B.
So e.g.
Q Q Q A B Q Q
or
Q A B Q Q Q Q
etc.
Is there a way to do this?
Best regards
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13643
- Thank you received: 2491
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.
- holch
- Offline
- LimeSurvey Community Team
- Posts: 11658
- Thank you received: 2742
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13643
- Thank you received: 2491
You can not say be easy ...holch wrote: If we would have a real "page" concept besides the "group" concept, this would be easy peasy. But we don't. And from the opinion in some of my feature requests we probably will never get a real "page" concept.
It can be done in plugin on LimeSurvey 4, but still not easy.
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.
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10109
- Thank you received: 3593
Caveats:
- You may need some validation on the "Next" clicks to verify that mandatory questions are answered.
- Returning to the group may be problematic.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13643
- Thank you received: 2491
Yes, but i don't think it's OK with needed system.tpartner wrote: You could hide half of the content in a group and use the "Next" button to hide the first half and show the second half of the content, simulating the submission of a group.
Caveats:
- You may need some validation on the "Next" clicks to verify that mandatory questions are answered.
- Returning to the group may be problematic.
Group B must be after group A
Group A position must be randomized (at position 1, 2, 3 etc ...)
Clearly : can be done in a complex plugin in 4.X
setVariableExpressionEnd usage
Sample of usage for reconstruction of questionnaire
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.
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10109
- Thank you received: 3593
I understand - I would put the contents of group B in group A and initially hide the group B stuff.Group B must be after group A
Group A position must be randomized (at position 1, 2, 3 etc ...)
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13643
- Thank you received: 2491
Yes , it's the solution of 1st line, not for 2ndtpartner wrote:
I understand - I would put the contents of group B in group A and initially hide the group B stuff.Group B must be after group A
Group A position must be randomized (at position 1, 2, 3 etc ...)
1.Group B must be after group A ! Javascript solution to "cut" a group visually
2. Group A position must be randomized (at position 1, 2, 3 etc ...) : ?
For 2 : maybe create
- add befor all ShowGroupA equation with {if(is_empty(self.NAOK),rand(1,4),self.NAOK)} -(unsure it work like that, didn' remnd)
- AB1 at position 1 with condition ShowGroupA ==1
- AB2 at position 2 with condition ShowGroupA ==2
- AB3 at position 3 with condition ShowGroupA =
- AB4 at position 4 with condition ShowGroupA ==4
etc ...
Finally :! make a plugin (in 4.X) can be more easy ...
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.
- rakittam
- Topic Author
- Offline
- New Member
- Posts: 14
- Thank you received: 0
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10109
- Thank you received: 3593
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
- rakittam
- Topic Author
- Offline
- New Member
- Posts: 14
- Thank you received: 0
- holch
- Offline
- LimeSurvey Community Team
- Posts: 11658
- Thank you received: 2742
DenisChenu wrote:
You can not say be easy ...holch wrote: If we would have a real "page" concept besides the "group" concept, this would be easy peasy. But we don't. And from the opinion in some of my feature requests we probably will never get a real "page" concept.
It can be done in plugin on LimeSurvey 4, but still not easy.
I am not saying that implementing a page concept into Limesurvey would be easy.
I am no developer and thus I am in no position to reliably estimate the effort it would take to implement a page concept in addition to the group concept that we already have. Due to the complexity of Limesurvey, I would guess that it would have many touch points in different functionalities in Limesurvey and is probably quite some work.
What I am saying is, that IF WE WOULD HAVE a page concept, besides the group concept, it would be easy to do what OP wants to do. Not more, not less. Or call it something like "visual question groups" (pages) and "logical question groups" (current question groups). In some projects these might be actually the same, but sometimes, like here, you need to group questions logically, but you want to separate them visually (different pages).
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.