- Posts: 409
- Thank you received: 34
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Disable some Radio answers based on previous question
- blocka
- Topic Author
- Offline
- Platinum Member
Less
More
5 years 5 months ago #175044
by blocka
Disable some Radio answers based on previous question was created by blocka
I have two radio type questions:
Question 1 has 3 options:
A1) Government
A2) Non-Profit
A3) Private sector
Question 2 has 3 options -- along with my need to enable or disable that answer:
a) Answer option 1 (enable this option if respondent selected answer 1 in Question 1)
b) Answer option 2 (disable this answer option if respondent selected answer 1 in in Question 1)
c) Answer option 3 (enable this option if respondent selected answer 1 in in Question 1)
Since there is no relevance equation on radio types answers, how can I disable the required answers in Question 2 based on the response to Question 1?
LS Version : 2.73.1, Build 171220
Question 1 has 3 options:
A1) Government
A2) Non-Profit
A3) Private sector
Question 2 has 3 options -- along with my need to enable or disable that answer:
a) Answer option 1 (enable this option if respondent selected answer 1 in Question 1)
b) Answer option 2 (disable this answer option if respondent selected answer 1 in in Question 1)
c) Answer option 3 (enable this option if respondent selected answer 1 in in Question 1)
Since there is no relevance equation on radio types answers, how can I disable the required answers in Question 2 based on the response to Question 1?
LS Version : 2.73.1, Build 171220
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10630
- Thank you received: 3696
5 years 5 months ago #175063
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 Disable some Radio answers based on previous question
The simplest solution wold be to use several versions of Q2 hidden/shown via relevance.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- KompetenzZ
- Offline
- Premium Member
Less
More
- Posts: 153
- Thank you received: 8
5 years 5 months ago - 5 years 5 months ago #175740
by KompetenzZ
Cheers kompetenzz
Replied by KompetenzZ on topic Disable some Radio answers based on previous question
Hi,
is there possibility to keep the question in only one version (in blocka's case Q2) and still disable some answer options? I thought doing something in "Edit answer options" of a List (Radio) question?
This would be better for the analysis of the survey results, only having one question instead of several.
is there possibility to keep the question in only one version (in blocka's case Q2) and still disable some answer options? I thought doing something in "Edit answer options" of a List (Radio) question?
This would be better for the analysis of the survey results, only having one question instead of several.
Cheers kompetenzz
Last edit: 5 years 5 months ago by KompetenzZ.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12779
- Thank you received: 3940
5 years 5 months ago #175748
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Disable some Radio answers based on previous question
Hi,
it's always the same procedure.
Between the two single question (Q1, Q2) insert a
multiple question with the same answer options as question 2 (hidden)
an equation (hidden)
In the equation set the subquestions of the multiple to "yes" or blank, as desired.
Then use this multiple question as array filter of Q2
Well, you did not say, what is to happen if the answer in Q1 is "2" or "3".
So in this small example I only set the second option of Q2.
Best regards
Joffm
[hr]
it's always the same procedure.
Between the two single question (Q1, Q2) insert a
multiple question with the same answer options as question 2 (hidden)
an equation (hidden)
In the equation set the subquestions of the multiple to "yes" or blank, as desired.
Then use this multiple question as array filter of Q2
Well, you did not say, what is to happen if the answer in Q1 is "2" or "3".
So in this small example I only set the second option of Q2.
Best regards
Joffm
[hr]
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The topic has been locked.
- KompetenzZ
- Offline
- Premium Member
Less
More
- Posts: 153
- Thank you received: 8
5 years 5 months ago - 5 years 5 months ago #175851
by KompetenzZ
Cheers kompetenzz
Replied by KompetenzZ on topic Disable some Radio answers based on previous question
HI,
thank you very much for your answer. I had much difficulties to recreate your example until I noticed that your example only works when I choose in the general settings "Format: Question by question". When I choose "Format: Group by group" it doesn't work. Could it be that it only works when you select "Format: Question by question"?
Is there a way to programme it in such a way that it works also for "Format: Group by group"?
But maybe something else is the problem, here is my example (.lss file).
The problem is that my answer options of the of the last questions doesn't show up, see screenshot.
thank you very much for your answer. I had much difficulties to recreate your example until I noticed that your example only works when I choose in the general settings "Format: Question by question". When I choose "Format: Group by group" it doesn't work. Could it be that it only works when you select "Format: Question by question"?
Is there a way to programme it in such a way that it works also for "Format: Group by group"?
But maybe something else is the problem, here is my example (.lss file).
The problem is that my answer options of the of the last questions doesn't show up, see screenshot.
Cheers kompetenzz
Attachments:
Last edit: 5 years 5 months ago by KompetenzZ.
The topic has been locked.