Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Can I choose a set number of options from multiple lists?

Can I choose a set number of options from multiple lists? 2 years 9 months ago #105817

  • Johan01
  • Johan01's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
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.
à chacun son goût
The administrator has disabled public write access.

Can I choose a set number of options from multiple lists? 2 years 9 months ago #105822

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6574
  • Thank you received: 1477
  • Karma: 579
Place everything in a single multiple-choice question. Set up your survey to use JavaScript and add something like this to the question source:

<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.
Last Edit: 2 years 9 months ago by tpartner.
The administrator has disabled public write access.
The following user(s) said Thank You: Johan01

Can I choose a set number of options from multiple lists? 2 years 9 months ago #105924

  • Johan01
  • Johan01's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Awesome! Thanks a lot!
à chacun son goût
The administrator has disabled public write access.
Time to create page: 0.208 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form