Welcome to the LimeSurvey Community Forum

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

Array - multiple choice and single choice

  • phorcast2022
  • phorcast2022's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 days 5 hours ago - 5 days 5 hours ago #268592 by phorcast2022
Array - multiple choice and single choice was created by phorcast2022
Please help us help you and fill where relevant:
LimeSurvey version: LimeSurvey Cloud Version 6.10.0
Own server or LimeSurvey Cloud: LimeSurvey Cloud
Survey theme/template: Fruity
==================
Hello,

Is it possible to have an array question that combines radio single choice and multiple choice questions?
For example: 
 
-  “Aware of” and “Used in the past” are multiple-choice Qs, while “Most familiar with” is a single choice Q. 

Thank you!

 
Last edit: 5 days 5 hours ago by phorcast2022.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 days 3 hours ago #268597 by Joffm
Replied by Joffm on topic Array - multiple choice and single choice
Hi,
you have to validate the last column (only one mention allowed)
On the other side you have to make sure that a click in the second column requires a click in the first column. Similarly, a click in the third column.

In my opinion a design with splitted questions and use of "array filter"may be better
Array filter:
 

array with a validation like "countif("5",self)==1"
 

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • phorcast2022
  • phorcast2022's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 days 21 hours ago #268601 by phorcast2022
Replied by phorcast2022 on topic Array - multiple choice and single choice
Hi,
Thank you so much! This looks perfect.

Questions for you:
1) How did you make two other options? Did you use multiple choice with comments and add something in javascript?
2) Would you be able to attach a Iss file so I can follow what you did on the back end?

Thank you!

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 days 20 hours ago #268602 by Joffm
Replied by Joffm on topic Array - multiple choice and single choice
Here the lss.
 

File Attachment:

File Name: limesurvey...9692.lss
File Size:80 KB


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • phorcast2022
  • phorcast2022's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 days 14 hours ago #268604 by phorcast2022
Replied by phorcast2022 on topic Array - multiple choice and single choice
Thank you!

The only thing is that, using your example, participants should be able to select for eg. row A both 'Never heard of' and 'Never heard of' options. And for the last column, pick only one option for the whole column but if it so happens that they selected three per row once, that should be permitted.

I really appreciate your guidance with this!

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 days 6 hours ago #268606 by Joffm
Replied by Joffm on topic Array - multiple choice and single choice
I do not understand your concern.
In the array there is only one option per row.
Of course.
Either I "never heard of"
or "I know it but don't use"
or "I use it"
or " it is my favourite"
You see that it is ordered and each option includes the previous options.
If I use something it is obvious that I am aware of it.
If it's my favourite, it's obvious that I use it.

Joffm 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • phorcast2022
  • phorcast2022's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 days 4 hours ago #268607 by phorcast2022
Replied by phorcast2022 on topic Array - multiple choice and single choice
Hi,

Ok. Then because I need multiple choices per row, I will try with Array (Numbers) Checkbox layout with some exclusive validation for the last column.

Thanks!

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 days 22 hours ago #268611 by Joffm
Replied by Joffm on topic Array - multiple choice and single choice
Of course, it's up to you.
It is your survey.
We only can make proposals.

But, just to know:

Then because I need multiple choices per row

Why do you think you need this?

Joffm


 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • phorcast2022
  • phorcast2022's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 days 14 hours ago #268612 by phorcast2022
Replied by phorcast2022 on topic Array - multiple choice and single choice
Hi,

Thanks! 

It's just how we need the question to be presented.

I was able to do it, but was unsuccessfully able to make one of my subquestions exclusive per column. Ie. From my survey attached if they select 'None' for a column, all previous subqestions selected in that column de-selects and becomes blocked out (ie. not selectable) until they de-select 'None'. 

Please let me know if I should make a separate forum question for this question.

Thanks.

 

File Attachment:

File Name: limesurvey...8877.lss
File Size:67 KB


 

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 days 49 minutes ago #268628 by tpartner
Replied by tpartner on topic Array - multiple choice and single choice

...but was unsuccessfully able to make one of my subquestions exclusive per column.
See this post - forums.limesurvey.org/forum/can-i-do-thi...th-checkboxes#227597

If you want the last column to be exclusive, change this:
Code:
$('tr[id^="javatbd"]:first td.checkbox-item', thisQuestion).removeClass('normal-opt').addClass('exclusive-opt');

To this:
Code:
$('tr[id^="javatbd"]:last td.checkbox-item', thisQuestion).removeClass('normal-opt').addClass('exclusive-opt');

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

  • phorcast2022
  • phorcast2022's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 day 20 hours ago #268633 by phorcast2022
Replied by phorcast2022 on topic Array - multiple choice and single choice
Hi!
Thank you for your help.

Any way to adapt my question so that from my survey attached above if they select 'None' for a column, all previous subqestions selected in that column de-selects and becomes blocked out (ie. not selectable) until they de-select 'None'?

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 day 19 hours ago #268634 by tpartner
Replied by tpartner on topic Array - multiple choice and single choice
The thread that I gave a link to describes how to do that.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose