Answer Relevance Workaround

Mehr
2 Jahre 11 Monate her #135029 von BBCMResearch
COM_KUNENA_MESSAGE_CREATED_NEW
I know answer relevance is still in the works, but in the meantime, I was wondering if there was a way to do the following:

I need to set up an array with 10 subquestions and 4 answers.
However, I need the last 3 subquestions to only be able to selection answers 1 & 4 because answers 2&3 aren't applicable.

Help?

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

LimeSurvey Partners
Mehr
2 Jahre 10 Monate her #135046 von first
COM_KUNENA_MESSAGE_REPLIED_NEW
I lost you at

...to only be able to selection answers 1 & 4 because answers 2&3 aren't applicable.


Survey Designer and Programmer

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Jahre 10 Monate her #135061 von tpartner
COM_KUNENA_MESSAGE_REPLIED_NEW
BBCMResearch, what LS version?

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

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Jahre 10 Monate her #135080 von BBCMResearch
COM_KUNENA_MESSAGE_REPLIED_NEW
Tony, apologies. I use 2.50+, Build 160412

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Jahre 10 Monate her #135081 von BBCMResearch
COM_KUNENA_MESSAGE_REPLIED_NEW
OMdev, picture a 10x4 array, with middle two columns grayed out for the last 3 rows. Subquestions 1-7 need to be able to choose from all 4 possible answers, but Subquestions 8-10, while staying in the same array, only need to be able to choose from answers 1 & 4.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Jahre 10 Monate her #135105 von tpartner
COM_KUNENA_MESSAGE_REPLIED_NEW
You can add something like this to the source of the array question text:

<script type="text/javascript" charset="utf-8">		
	$(document).ready(function(){
 
		// Remove contents of ninth row, second and third cells
		$('#question{QID} tr.answers-list:eq(8) td.answer-item:eq(1) *').remove();
		$('#question{QID} tr.answers-list:eq(8) td.answer-item:eq(2) *').remove();
 
		// Remove contents of tenth row, second and third cells
		$('#question{QID} tr.answers-list:eq(9) td.answer-item:eq(1) *').remove();
		$('#question{QID}1 tr.answers-list:eq(9) td.answer-item:eq(2) *').remove();
	});
</script>

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Folgende Benutzer bedankten sich: BBCMResearch

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