Welcome to the LimeSurvey Community Forum

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

Randomly chose 2 questions out of each question-group

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 3 months ago - 4 years 3 months ago #213626 by Joffm
Okay, let me think about it.

My first idea:
You have the script that at the moment calculates something like this

3,1,5,8
which means, you display question 1 (1) of the first group AND question 1 (5) of the second group.

If you only calculate two out of 4 like
3,2

and show the questions of group A IF they are IN this list
and the questions of group B IF they are NOT IN this list

These relevance equations
Question 1A: strpos(Q0,"1")>0   -> not displayed
Question 2A: strpos(Q0,"2")>0   -> displayed
Question 3A: strpos(Q0,"3")>0   -> displayed
Question 4A: strpos(Q0,"4")>0   -> not displayed
Question 1B: strpos(Q0,"1")==0   -> displayed
Question 2B: strpos(Q0,"2")==0   -> not displayed
Question 3B: strpos(Q0,"3")==0   -> not displayed
Question 4B: strpos(Q0,"4")==0   -> displayed

1. Ergebnis-Beispiel
   

2. Ergebnis-Beispiel


And the sample survey.
 

File Attachment:

File Name: limesurvey...8582.lss
File Size:23 KB


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 years 3 months ago by Joffm.
The topic has been locked.
  • diegestaltung
  • diegestaltung's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 3 months ago #213631 by diegestaltung
Replied by diegestaltung on topic Randomly chose 2 questions out of each question-group
@Joffm, you genius!! :) Works like a charm. You will receive special thanks in my Master Thesis, for which I need this survey ;)
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 3 months ago #213635 by Joffm
For German users I prefer to provide my support as beerware.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • diegestaltung
  • diegestaltung's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 3 months ago #213637 by diegestaltung
Replied by diegestaltung on topic Randomly chose 2 questions out of each question-group
Sehr gerne, auch österreichisches?
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose