Welcome to the LimeSurvey Community Forum

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

Select multiple answers in an array

  • VictoriaLawFoundation
  • VictoriaLawFoundation's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 7 months ago #205698 by VictoriaLawFoundation
Select multiple answers in an array was created by VictoriaLawFoundation
Total newbie here (previous Qualtrics user). TBH finding it very hard to navigate the manual.

How do I set up an array, where respondents can select multiple answer options per row?

eg.
Q1 Who attended each event?

a. Party
b. Birthday
c. Holiday
d. Funeral

Answer options (select all that apply):
1. mum
2. dad
3. friends
4. partner
5. children
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago #205699 by Joffm
Replied by Joffm on topic Select multiple answers in an array
Hi,
even if you find it hard, you have to do it.
At least read the chapter about question types.
Here you find your answer (array(numbers with checkbox layout)
manual.limesurvey.org/Question_type_-_Ar...flexible_checkbox.29

Good luck
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: VictoriaLawFoundation
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #205839 by holch
Replied by holch on topic Select multiple answers in an array

Here you find your answer (array(numbers with checkbox layout)

I agree with Joffm, at least a quick read through the question types will be a good investment of your time, because 20min reading there will save you a lot of time.

However, especially this "question setting", in my opinion should be a question type. I wouldn't look for checkboxes in the Array (Numbers) question type.

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

The following user(s) said Thank You: DenisChenu, VictoriaLawFoundation
The topic has been locked.
  • VictoriaLawFoundation
  • VictoriaLawFoundation's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #205901 by VictoriaLawFoundation
Replied by VictoriaLawFoundation on topic Select multiple answers in an array
thanks so much, will do.
The topic has been locked.
  • VictoriaLawFoundation
  • VictoriaLawFoundation's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #205902 by VictoriaLawFoundation
Replied by VictoriaLawFoundation on topic Select multiple answers in an array
yes, I actually have no idea how I would have even thought to look there for that answer.
The topic has been locked.
More
3 years 2 months ago - 3 years 2 months ago #211761 by giovbod
Replied by giovbod on topic Select multiple answers in an array
Thanks for the answer.
I need to add another one: I'm trying to read the answer from a numeric array with checkbox style question. (I need to use it in a relevance equation, but also in the question itself)
Let's say, using the same example as before, I want to write "hi" in the next question if the mum attended the party.
I should write a code like {if((Q1_a_1)==1, 'Hi')}, right?
Then why it doesn't work? What am I doing wrong?
:o(
Thanks
Last edit: 3 years 2 months ago by giovbod. Reason: mistype
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 months ago #211773 by Joffm
Replied by Joffm on topic Select multiple answers in an array

I should write a code like {if((Q1_a_1)==1, 'Hi')}, right?

Then why it doesn't work? What am I doing wrong?

I am sure there is no question code (Q1_a_1)  
So you should remove the brackets. And to be on the save side add the FALSE part
{if(Q1_a_1==1, "Hi","")}

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose