- Posts: 22
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Dual Scale Array, getting rid of one side for one question
- DerBibber17
-
- Offline
- Junior Member
-
Less
More
5 years 8 months ago #159053
by DerBibber17
Replied by DerBibber17 on topic Dual Scale Array, getting rid of one side for one question
Thank you for the script
Unfortunately it's not working. I inserted the script into the source of the question but nothing happens. I also tried some other things (like adding an "other"-option with textfield to some of my question), but nothing is working.
So i was wondering, if the problem is that I'm using limesurvey via my University which is offering only the german limesurvey version while the scripts are in english. Could this be part of the problem?

So i was wondering, if the problem is that I'm using limesurvey via my University which is offering only the german limesurvey version while the scripts are in english. Could this be part of the problem?
The topic has been locked.
5 years 8 months ago #159055
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Dual Scale Array, getting rid of one side for one question
The script language does not matter.
See here for instructions on how to insert scripts - manual.limesurvey.org/Workarounds:_Manip...tc..29_in_LimeSurvey
See here for instructions on how to insert scripts - manual.limesurvey.org/Workarounds:_Manip...tc..29_in_LimeSurvey
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- DerBibber17
-
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 1
5 years 8 months ago #159107
by DerBibber17
Replied by DerBibber17 on topic Dual Scale Array, getting rid of one side for one question
Ok so I don't know why it's not working.
Do I have to change something in the script when I'm using it in my question (except the Subheadings)?
Do I have to change something in the script when I'm using it in my question (except the Subheadings)?
The topic has been locked.
5 years 8 months ago #159110
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Dual Scale Array, getting rid of one side for one question
Can you activate a test survey and give a link here?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- DerBibber17
-
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 1
5 years 8 months ago #159155
by DerBibber17
Replied by DerBibber17 on topic Dual Scale Array, getting rid of one side for one question
In the meanwhile I got a new problem. I couldn't activate my survey because I've got to many subquestions in it. So here's a link to just one question group of my survey.
In this group are for example 3 questions in which I would like to use sub-headers. One question with multiple numerical input and two arrays (I already changed the multiflex arrays so I dont need sub-headers in them anymore). The bold subquestion you see now should be only subheaders.
Thank you so much!
survey.tugraz.at/index.php/survey/index/...65/newtest/Y/lang/de
In this group are for example 3 questions in which I would like to use sub-headers. One question with multiple numerical input and two arrays (I already changed the multiflex arrays so I dont need sub-headers in them anymore). The bold subquestion you see now should be only subheaders.
Thank you so much!
survey.tugraz.at/index.php/survey/index/...65/newtest/Y/lang/de
The topic has been locked.
5 years 8 months ago - 5 years 8 months ago #159156
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Dual Scale Array, getting rid of one side for one question
Hello, Bibber,
and this (where does the subheading appear):
I got this result:
And this for your "normal" matrix (without any css to style the header row)
sample file attached
Best regards
Joffm
You have to change this:Do I have to change something in the script when I'm using it in my question (except the Subheadings)?
Code:
// Define the sub-heading text strings var subHeading1 = 'Subheading 1'; var subHeading2 = 'Subheading 2'; var subHeading3 = 'My third subheading';
Code:
// Insert the new rows $('tr.subquestion-list:eq(0)', thisQuestion).before('<tr class="sub-header-row"><th colspan="'+columnsLength+'">'+subHeading1+'</th></tr>'); $('tr.subquestion-list:eq(2)', thisQuestion).before('<tr class="sub-header-row"><th colspan="'+columnsLength+'">'+subHeading2+'</th></tr>'); $('tr.subquestion-list:eq(5)', thisQuestion).before('<tr class="sub-header-row"><th colspan="'+columnsLength+'">'+My third subHeading+'</th></tr>');
I got this result:
And this for your "normal" matrix (without any css to style the header row)
sample file attached
Well, that's something different. So either you try to shorten your survey or you have to split it.In the meanwhile I got a new problem. I couldn't activate my survey because I've got to many subquestions in it.
Best regards
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last edit: 5 years 8 months ago by Joffm.
The following user(s) said Thank You: tpartner, DerBibber17
The topic has been locked.
- DerBibber17
-
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 1
5 years 8 months ago #159172
by DerBibber17
Replied by DerBibber17 on topic Dual Scale Array, getting rid of one side for one question
Thank you so much, I would hug you if I could
Finally something worked!
May I ask another question? I would also like to add a row with an "other"-option and a short textfield to some questions (arrays and multiflex arrays). Is that possible?

May I ask another question? I would also like to add a row with an "other"-option and a short textfield to some questions (arrays and multiflex arrays). Is that possible?
The topic has been locked.
5 years 8 months ago #159173
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Dual Scale Array, getting rid of one side for one question
Hello, Bibber,
please do not add new question to a topic.
Open a new thread. It is easier for other users to find something.
How often do we read "I searched, but didn't find."
Okay,
Depends on the structure of your survey: (all on one page, group by group or question by question)
I did these in my last survey like this.
Though it is asked question by question I did it "group by group" (each group one question)
Only in this group I placed the array and underneath the question with the "Other"
Like this:
You know, I prefer the "out of the box" solutions, because most of the time there is no time to wait for an answer in the forum, though this forum is one of the best in quality and response time.
Joffm
please do not add new question to a topic.
Open a new thread. It is easier for other users to find something.
How often do we read "I searched, but didn't find."
Okay,
Depends on the structure of your survey: (all on one page, group by group or question by question)
I did these in my last survey like this.
Though it is asked question by question I did it "group by group" (each group one question)
Only in this group I placed the array and underneath the question with the "Other"
Like this:
You know, I prefer the "out of the box" solutions, because most of the time there is no time to wait for an answer in the forum, though this forum is one of the best in quality and response time.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- DerBibber17
-
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 1
5 years 8 months ago #159174
by DerBibber17
Replied by DerBibber17 on topic Dual Scale Array, getting rid of one side for one question
Of course, you're right 
I'm going to ask this question in a new thread. My structure is question by question, so the solutions a I found dont work.

I'm going to ask this question in a new thread. My structure is question by question, so the solutions a I found dont work.
The topic has been locked.
- DerBibber17
-
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 1
5 years 7 months ago #159368
by DerBibber17
Replied by DerBibber17 on topic Dual Scale Array, getting rid of one side for one question
I'd have one more question about this script. How would I have to change it, if i want to use it in a radio (list) question to insert the same subheadings?
The topic has been locked.
5 years 7 months ago #159369
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Dual Scale Array, getting rid of one side for one question
Hello, Bibber,
read this - Tony's last post.
www.limesurvey.org/forum/can-i-do-this-w...e-in-multiple-choice
In the script:
Change "checkbox" to "radio"
Change "question-item" to "answer-item.
Regards
Joffm
read this - Tony's last post.
www.limesurvey.org/forum/can-i-do-this-w...e-in-multiple-choice
In the script:
Change "checkbox" to "radio"
Change "question-item" to "answer-item.
Regards
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The following user(s) said Thank You: tpartner, DerBibber17
The topic has been locked.
- DerBibber17
-
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 1
5 years 7 months ago #159370
by DerBibber17
Replied by DerBibber17 on topic Dual Scale Array, getting rid of one side for one question
I just recognized it's not working because i don't have the rights to edit template.css (University account).
Maybe it's possible to change the script you provided me for the arrays slightly so that I could just add some rows for my subheadings?
Maybe it's possible to change the script you provided me for the arrays slightly so that I could just add some rows for my subheadings?
The topic has been locked.