- Posts: 4
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Can I choose a set number of options from multiple lists?
- Johan01
- Topic Author
- Offline
- New Member
Less
More
10 years 2 weeks ago #105817
by Johan01
à chacun son goût
Can I choose a set number of options from multiple lists? was created by Johan01
Hi everybody,
is there a way to have a minimum and maximum number of options to choose from several list-type questions?
In my survey I have 4 Lists which all feature 5 options. Participants are asked to select a total number of 7 options out of the 4 lists. Is there a ways to define something like minimum/maxiumum number for a set of lists?
Alternatively, is there a way to define something like blocks with specific headlines in one list?
thanks in advance,
J.
is there a way to have a minimum and maximum number of options to choose from several list-type questions?
In my survey I have 4 Lists which all feature 5 options. Participants are asked to select a total number of 7 options out of the 4 lists. Is there a ways to define something like minimum/maxiumum number for a set of lists?
Alternatively, is there a way to define something like blocks with specific headlines in one list?
thanks in advance,
J.
à chacun son goût
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
10 years 2 weeks ago - 10 years 2 weeks ago #105822
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Can I choose a set number of options from multiple lists?
Place everything in a single multiple-choice question.
Set up your survey to use JavaScript
and add something like this to the question source:
Code:
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ // Identify the question var q1ID = {QID}; var q1 = $('#question'+q1ID+''); $('.question-item:eq(0)', q1).before('<li style="font-weight:bold;">Sub-Label 1</li>'); $('.question-item:eq(5)', q1).before('<li style="font-weight:bold;">Sub-Label 2</li>'); $('.question-item:eq(10)', q1).before('<li style="font-weight:bold;">Sub-Label 3</li>'); }); </script>
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
Last edit: 10 years 2 weeks ago by tpartner.
The following user(s) said Thank You: Johan01
The topic has been locked.
- Johan01
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
10 years 1 week ago #105924
by Johan01
à chacun son goût
Replied by Johan01 on topic Can I choose a set number of options from multiple lists?
Awesome! Thanks a lot!
à chacun son goût
The topic has been locked.