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

More
6 years 9 months ago #159053 by DerBibber17
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?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 9 months ago #159055 by tpartner
The script language does not matter.

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.
More
6 years 9 months ago #159107 by DerBibber17
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)?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 9 months ago #159110 by tpartner
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.
More
6 years 9 months ago #159155 by DerBibber17
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
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 9 months ago - 6 years 9 months ago #159156 by Joffm
Hello, Bibber,

Do I have to change something in the script when I'm using it in my question (except the Subheadings)?

You have to change this:
Code:
// Define the sub-heading text strings
    var subHeading1 = 'Subheading 1';
    var subHeading2 = 'Subheading 2';
    var subHeading3 = 'My third subheading';
and this (where does the subheading appear):
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

In the meanwhile I got a new problem. I couldn't activate my survey because I've got to many subquestions in it.

Well, that's something different. So either you try to shorten your survey or you have to split it.

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 6 years 9 months ago by Joffm.
The following user(s) said Thank You: tpartner, DerBibber17
The topic has been locked.
More
6 years 9 months ago #159172 by DerBibber17
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?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 9 months ago #159173 by Joffm
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

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
6 years 9 months ago #159174 by DerBibber17
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.
The topic has been locked.
More
6 years 9 months ago #159368 by DerBibber17
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.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 9 months ago #159369 by Joffm
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

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: tpartner, DerBibber17
The topic has been locked.
More
6 years 9 months ago #159370 by DerBibber17
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?
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose