- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Array with different answer options per subquestion
- rdg5183
- Topic Author
- Offline
- New Member
Less
More
9 years 8 months ago #111408
by rdg5183
Array with different answer options per subquestion was created by rdg5183
Hi All,
We are in the process of setting up a survey for one of our customers. One of the questions is quite tricky though as it requires different answer options per subquestion in the array.
First example subquestion on the left = Turnover
Answer options = Increased, Decreased
Second example subquestion on the left = Economic role
Answer options = Trusted institution, Strong innovator
And so on.
I haven't been able to find a question type that lets you do this.
Is it possible?
We are in the process of setting up a survey for one of our customers. One of the questions is quite tricky though as it requires different answer options per subquestion in the array.
First example subquestion on the left = Turnover
Answer options = Increased, Decreased
Second example subquestion on the left = Economic role
Answer options = Trusted institution, Strong innovator
And so on.
I haven't been able to find a question type that lets you do this.
Is it possible?
The topic has been locked.
- Bigred01
- Offline
- Premium Member
Less
More
- Posts: 88
- Thank you received: 33
9 years 8 months ago - 9 years 8 months ago #111419
by Bigred01
Replied by Bigred01 on topic Array with different answer options per subquestion
You can create a new array for each new group that has different answer options and have them all on the same page. Or you can use jQuery to insert some html into the table to create a new header row in the right spots (which will get trickier if you are randomizing the table). The quickest way would be to just use a new array question for each group of subquestions.
Edit*
Or i guess you can just have the headers repeat for every row then change the text inside of them on load with jQuery as well.
Edit*
Or i guess you can just have the headers repeat for every row then change the text inside of them on load with jQuery as well.
Last edit: 9 years 8 months ago by Bigred01.
The following user(s) said Thank You: rdg5183
The topic has been locked.
- rdg5183
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
9 years 8 months ago #111432
by rdg5183
Replied by rdg5183 on topic Array with different answer options per subquestion
Yes, the option of creating separate arrays occurred to me already. I was wondering though if there was an alternative. Thanks for the tip on jQuery!
The topic has been locked.