Welcome to the LimeSurvey Community Forum

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

Hide radio button based on previous Array answers

  • Criteria
  • Criteria's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 9 months ago - 4 years 9 months ago #192661 by Criteria
Hi,

I hope someone can understand and help me. Maybe you can understand better by viewing the images:

I have an array question and according to these answers, these should appear in the following list radio question, but only those that were selected except "None".

I hide them without problems (I think so), the only thing is that the radio button (check) is shown and should appear hidden. Ugly.








I forgot. I use this in the answer options (Question 2)


{if(Q2_1<"4",Q2_1.question,"")}
{if(Q2_2<"4",Q2_2.question,"")}
{if(Q2_3<"4",Q2_3.question,"")}
{if(Q2_4<"4",Q2_4.question,"")}

Thanks.
Last edit: 4 years 9 months ago by Criteria.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago #192662 by Joffm
Hi,
in this case you cannot use the same syntax as in the array using the plugin "hideEmptyColumns".
The name says that it hides columns in arrays if the text is empty.
As you see in your screenshot only the text is empty (therefore the different margins) but without hiding anything.

Because single punch questions don't have something like answer option relevance you have do do it like this.

1. create a (hidden) question of type "multiple" (let's call it M1) with subquestions as in your array ("Option 1", "Option 2"...)
2. in an (also hidden) equation and check the selected options
{M1_1=if(Q1_1!=4,"Y","")}
{M1_2=if(Q1_2!=4,"Y","")}
...
Here I assume that the answer code of "None" is "4".

Now you set this question "M1" as array filter for your next single punch question.

Joffm

File Attachment:

File Name: limesurvey...2953.lss
File Size:24 KB


P.S.
If you ask your survey "question by question" both can be in the same group.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: Criteria
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose