Welcome to the LimeSurvey Community Forum

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

Setting condition based on the n. of answers in a previous multiple choice quest

  • Vinicos
  • Vinicos's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 1 day ago #197660 by Vinicos
Hello,

I want one of the options of a List (Radio) question to be shown only if the participant checked only one answer in a previous multiple option question. Is that possible?

Thanks

LS version Versão 3.22.13+200415
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 day ago #197669 by holch

I want one of the options of a List (Radio) question to be shown only if the participant checked only one answer in a previous multiple option question. Is that possible?


Not out of the box. Unfortunately "List (Radio)" has no relevance equation for it's answer options, so you can't use that to individually show/hide a specific answer option.

What you could think of is create 2 different questions, one showing the item, another without the item and then via question relevance show/hide the respective questions.

Or you might use Javascript. But I can't help with that.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 22 hours ago #197678 by Joffm
Let's say your multi question is Q1.
You may create a hidden question of type multiple (M1) with exactly the same subquestions as there are answer options in your single question.
Then create a question of type equation (eqM1) where you check the needed subquestions of M1,

{M1_1="Y"}
{M1_2="Y"}
{M1_3=if(count(that.Q1)==1,"Y","")}
{M1_4="Y"}
{M1_5="Y"}

Now you can use M1 as array filter for your single question (Q2)

1: Option 1
2: Option 2
3: Option 3
4: Option 4
5: Option 5


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: paulfiner
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 22 hours ago #197684 by holch
Good approach by Joffm.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 10 hours ago #197714 by DenisChenu
Sill valid demonstration.sondages.pro/676785?lang=fr#

I must move it on 3.X and create a sample survey on manual …

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.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose