- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Conditioning groups with a multiple choice question
- sisc2112
- Topic Author
- Offline
- New Member
Less
More
5 years 8 months ago #171316
by sisc2112
Conditioning groups with a multiple choice question was created by sisc2112
Hello,
I have a survey where in the beginning the user has to answer a multiple choice question. This question is "which of the following subjects do you want to evaluate?".
Following this, I have one group with some questions for every subject (ten subjects, ten groups). Depending on what the user chooses, the right group of question should appear. (if there is chosen "Subject 1" in multiple choice, only the group for subject 1 should appear. Right now, all groups appear, no matter which answer is checked.)
I already tried this: SQ001.NAOK == "A1"
in different variations. All I did was making the whole group disappear.
Hoping someone could give me a hint with that one. Thank you in advance!
Regards,
Simon
I have a survey where in the beginning the user has to answer a multiple choice question. This question is "which of the following subjects do you want to evaluate?".
Following this, I have one group with some questions for every subject (ten subjects, ten groups). Depending on what the user chooses, the right group of question should appear. (if there is chosen "Subject 1" in multiple choice, only the group for subject 1 should appear. Right now, all groups appear, no matter which answer is checked.)
I already tried this: SQ001.NAOK == "A1"
in different variations. All I did was making the whole group disappear.
Hoping someone could give me a hint with that one. Thank you in advance!
Regards,
Simon
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12779
- Thank you received: 3940
5 years 8 months ago #171318
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Conditioning groups with a multiple choice question
Hi,
If your first question is single choice, it is something like: Q1=="A1" (Code of question and code of answer option)
If your first question is multiple choice, it is something like: Q1_SQ001=="Y" (Code of question_Code of subquestion "is answered")
Best regards
Joffm
This syntax seems to be wrong.SQ001.NAOK == "A1"
If your first question is single choice, it is something like: Q1=="A1" (Code of question and code of answer option)
If your first question is multiple choice, it is something like: Q1_SQ001=="Y" (Code of question_Code of subquestion "is answered")
Best regards
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: sisc2112
The topic has been locked.
- sisc2112
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
5 years 8 months ago #171320
by sisc2112
Replied by sisc2112 on topic Conditioning groups with a multiple choice question
Thank you so much for your fast and helpful answer - it works now!
The topic has been locked.