Array dual scale splitted - range-question-range

More
5 years 7 months ago - 5 years 7 months ago #74944 by EvaluationKH
EvaluationKH created the topic: Array dual scale splitted - range-question-range
Hi,

is someone knowing a possibility to design a "array dual scale-question" in the following sence:

scale A - question - Scale B ?

I often saw surveys where questions are designed like this. Must be some java-scripting...

Thanks in advance for answers :)
Last Edit: 5 years 7 months ago by EvaluationKH.

Please Log in to join the conversation.

More
5 years 7 months ago #74954 by tpartner
tpartner replied the topic: Array dual scale splitted - range-question-range
I did that for someone but can't find the post. Can you attach a sample survey?

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.

More
5 years 7 months ago - 5 years 7 months ago #74957 by EvaluationKH
EvaluationKH replied the topic: Aw: Re: Array dual scale splitted - range-question-range
Do you mean a survey where it is like that, or my limesurvey-survey with the array dual-question?

Sorry - didn't got it...
Last Edit: 5 years 7 months ago by EvaluationKH.

Please Log in to join the conversation.

More
5 years 7 months ago #74960 by tpartner
tpartner replied the topic: Aw: Re: Array dual scale splitted - range-question-range
Just a sample survey with your array-dual-scale question - so I don't have to spend time creating one to test.

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.

More
5 years 7 months ago #74964 by EvaluationKH
EvaluationKH replied the topic: Aw: Re: Aw: Re: Array dual scale splitted - range-question-range
Oh, sure,

here it is...

Thank you!
Attachments:

Please Log in to join the conversation.

More
5 years 7 months ago #74985 by tpartner
tpartner replied the topic: Aw: Re: Aw: Re: Array dual scale splitted - range-question-range
1) Set up your survey to use JavaScript .

2) Add the following script to the source of the array. Replace "QQ" with the array question ID .

The script hides the first column and inserts the subquestion text into the scale separators.
<script type="text/javascript" charset="utf-8">
 
	$(document).ready(function() { 
 
		moveRowLabels(QQ);
 
		function moveRowLabels(qID) {
 
			// Hide the first column
			$('#question'+qID+' th.header_answer_text, #question'+qID+' th.answertext').hide();
 
			// Insert the subquestion text into the scale separators
			$('#question'+qID+' table.question tbody').each(function(i){
				$('.dual_scale_separator:eq(0)', this).text($('.answertext', this).text());
			});
		}
    });
 
</script>


Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The following user(s) said Thank You: FLF

Please Log in to join the conversation.

More
5 years 7 months ago #75098 by EvaluationKH
EvaluationKH replied the topic: Aw: Re: Aw: Re: Aw: Re: Array dual scale splitted - range-question-range
Thank you so much!

I will try to get a donation for the projekt!

:cheer:

Please Log in to join the conversation.

More
5 years 2 months ago #84402 by Schroder101
Schroder101 replied the topic: Aw: Re: Aw: Re: Aw: Re: Array dual scale splitted - range-question-range
How would I just hide the first column only ie. the column that traditionally has the text in it,

or just stop the array from flashing a different colour when you roll over it?

Please Log in to join the conversation.

More
5 years 2 months ago #84446 by tpartner
tpartner replied the topic: Aw: Re: Aw: Re: Aw: Re: Array dual scale splitted - range-question-range

How would I just hide the first column only ie. the column that traditionally has the text in it,

Please attach a screenshot and a sample survey.

or just stop the array from flashing a different colour when you roll over it?

That can be done by modifying template.css but the details would depend on which template you are using. Search for something like "array1:hover".

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.

More
5 years 2 months ago #84506 by Schroder101
Schroder101 replied the topic: Aw: Re: Aw: Re: Aw: Re: Array dual scale splitted - range-question-range
Thanks for the hover tip found it - and could use as a workaround

Question attached and sample survey here

www.ap.urscorp.com/Consultation/index.php?sid=26127&lang=en

just using default template



Interested to hide first column though I tried first half of code above however no luck.
Attachments:

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now