Same randomization order for following questions

Mehr
1 Woche 4 Tage her #184313 von HalloHans
COM_KUNENA_MESSAGE_CREATED_NEW
Hi all,

In a survey I have several questions each having the same answer options.

Now, I would like to randomize my answer options in the first question. In the following questions I would like to show this randomized order from the first question.

Does anybody know how to do this?

Any help is greatly appreciated, thanks in advance

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

LimeSurvey Partners
Mehr
1 Woche 4 Tage her #184314 von jelo
COM_KUNENA_MESSAGE_REPLIED_NEW
You might add the used version of LimeSurvey and the questiontypes involved (e.g. create a small survey with 2-3 questions and attach an LSS-export here).

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Woche 3 Tage her #184363 von holch
COM_KUNENA_MESSAGE_REPLIED_NEW
I don't think this is doable. LS will randomize each question separately, so the order will most probably be different in every question.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Woche 3 Tage her #184371 von tpartner
COM_KUNENA_MESSAGE_REPLIED_NEW
You can use JavaScript to record the answer/sub-question order of the first question in a hidden short-text question and then apply it to subsequent questions.

As Jelo suggests attach a small sample survey containing only the relevant questions.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Woche 3 Tage her #184376 von HalloHans
COM_KUNENA_MESSAGE_REPLIED_NEW
Hi guys,

thanks for your answers. I very much appreciate it.

I'll attach a sample containing of 3 questions. For question 1 the answer options should be randomized. For q2 and q3 the same randomized order as in q1 should apply for the answer options.

Thanks a lot in advance,
Hans

Dateianhang:

Dateiname: Test_Randomize.lss
Dateigröße:24 KB
Anhang:

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Woche 3 Tage her #184389 von DenisChenu
COM_KUNENA_MESSAGE_REPLIED_NEW

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand .
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Woche 3 Tage her #184397 von Joffm
COM_KUNENA_MESSAGE_REPLIED_NEW
Hi, Hans,

you will find this question several times in the forum, and also you will find the standard answer:
"Limesurvey does not support dynamic lists"

There are several feature requests, but nothing happened so far.

If you read the thread https://www.limesurvey.org/forum/future-features/104233-what-feature-is-unique-to-limesurvey-what-feature-is-missing-the-most
you will see.

Best regards
Joffm


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

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Woche 3 Tage her - 1 Woche 3 Tage her #184408 von tpartner
COM_KUNENA_MESSAGE_REPLIED_NEW
My workaround...

1) Disable AJAX mode in the survey theme settings.

2) Insert a hidden (via Question CSS class) short-text question directly after the first list-radio question. For this example, we'll give the hidden question a code "randomOrder".

3) Add this script to the source of the first list-radio question:

<script type="text/javascript" charset="utf-8">
	$(document).on('ready pjax:scriptcomplete',function(){
 
		//Identify the questions
		var thisQuestion = $('#question{QID}');
		var hiddenQuestion = $(thisQuestion).nextAll('.text-short:eq(0)');
 
		// Create an array of answer codes
		var answerCodes = [];
		$('li.answer-item', thisQuestion).each(function(i) {
			answerCodes.push($(this).attr('id').split('X{QID}')[1]);
		});
 
		// Load the hidden question
		$('input:text', hiddenQuestion).val(answerCodes);
 
	});
</script>

4) Add this script to the source of following list-radio questions:

<script type="text/javascript" charset="utf-8">
	$(document).on('ready pjax:scriptcomplete',function(){
 
		//Identify this question
		var thisQuestion = $('#question{QID}');
		var thisAnswerList = $('li.answer-item:eq(0)', thisQuestion).parent();
 
		// Retrieve the answer codes from the "randomOrder" question
		var answerCodes = '{randomOrder}'.split(',');
 
		// Loop through the answer codes
		$.each(answerCodes, function(i, val) {
			// Move the answer item
			$(thisAnswerList).append($('li.answer-item[id$="X{QID}'+val+'"]', thisQuestion));
		});
 
	});
</script>

Sample survey attached:

Dateianhang:

Dateiname: limesurvey...1341.lss
Dateigröße:29 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Anhang:
Last edit: 1 Woche 3 Tage her by tpartner.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Woche 2 Tage her #184501 von HalloHans
COM_KUNENA_MESSAGE_REPLIED_NEW
Thanks a lot, that's exactly what I was looking for.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha