Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Array dual scale splitted - range-question-range

Array dual scale splitted - range-question-range 2 years 7 months ago #74944

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: 2 years 7 months ago by EvaluationKH.
The administrator has disabled public write access.

Re: Array dual scale splitted - range-question-range 2 years 7 months ago #74954

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4207
  • Thank you received: 791
  • Karma: 360
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Aw: Re: Array dual scale splitted - range-question-range 2 years 7 months ago #74957

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: 2 years 7 months ago by EvaluationKH.
The administrator has disabled public write access.

Re: Aw: Re: Array dual scale splitted - range-question-range 2 years 7 months ago #74960

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4207
  • Thank you received: 791
  • Karma: 360
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Aw: Re: Aw: Re: Array dual scale splitted - range-question-range 2 years 7 months ago #74964

Oh, sure,

here it is...

Thank you!
Attachments:
The administrator has disabled public write access.

Re: Aw: Re: Aw: Re: Array dual scale splitted - range-question-range 2 years 7 months ago #74985

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4207
  • Thank you received: 791
  • Karma: 360
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>

Capture_2012-02-23.PNG
Cheers,
Tony Partner

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

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: FLF

Aw: Re: Aw: Re: Aw: Re: Array dual scale splitted - range-question-range 2 years 7 months ago #75098

Thank you so much!

I will try to get a donation for the projekt!

:cheer:
The administrator has disabled public write access.

Re: Aw: Re: Aw: Re: Aw: Re: Array dual scale splitted - range-question-range 2 years 1 month ago #84402

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?
The administrator has disabled public write access.

Re: Aw: Re: Aw: Re: Aw: Re: Array dual scale splitted - range-question-range 2 years 1 month ago #84446

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4207
  • Thank you received: 791
  • Karma: 360
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Aw: Re: Aw: Re: Aw: Re: Array dual scale splitted - range-question-range 2 years 1 month ago #84506

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

Screenshot2012-08-12at11.34.32PM.png


Interested to hide first column though I tried first half of code above however no luck.
Attachments:
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.128 seconds
Donation Image