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
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
5 years 5 months ago #175044 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
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 5 months ago #175063 by tpartner
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.
More
5 years 5 months ago - 5 years 5 months ago #175740 by KompetenzZ
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.

Cheers kompetenzz
Last edit: 5 years 5 months ago by KompetenzZ.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 5 months ago #175748 by Joffm
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.

File Attachment:

File Name: limesurvey...5237.lss
File Size:20 KB


Best regards
Joffm



[hr]


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
5 years 5 months ago - 5 years 5 months ago #175851 by KompetenzZ
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.


File Attachment:

File Name: limesurvey...5532.lss
File Size:22 KB

Cheers kompetenzz
Last edit: 5 years 5 months ago by KompetenzZ.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose