Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Create a likert scale but move the "not applicable" option to the right

More
11 years 7 months ago #85678 by hugomp
Yes, many thanks.
I got it that far.
However, I do not understand why reset all column widths?
I want to keep the original column widths and only set the witdth of the spacer-column.
The indicated extra CSS does not seem to manage it.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 7 months ago #85679 by tpartner
You cannot keep the original widths if adding a column. The original widths are in percentages and add to 100 so adding a column wrecks that.

The posted CSS will manage the widths if you reset them.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
9 years 2 months ago #116617 by Mazi
Did anyone recently test if this JavaScript works fine at the latest Limesurvey 2.05 version?

Is it cross-template compatible/does it work fine with the default template?

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
More
8 years 11 months ago #120366 by mafo

Mazi wrote: Did anyone recently test if this JavaScript works fine at the latest Limesurvey 2.05 version?

Is it cross-template compatible/does it work fine with the default template?


I tried to use this JavaScript in combination with LimeSurvey 2.05+ but it did not work :(. Of course, it is also possible that I've made a mistake.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago #120381 by tpartner
I have just tested in 2.05 without a problem.

mafo, what template are you using? Do you have any JavaScript errors?


.

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
8 years 11 months ago #120404 by mafo

tpartner wrote: I have just tested in 2.05 without a problem.

mafo, what template are you using? Do you have any JavaScript errors?


.


I created a new template which is probably based on the default template!? After creating the new one I only changed the things you mentioned (in template.css).
I don't get a JavaScript error but JavaScript should work since I already successfully used another script which partially randomizes answers ( manual.limesurvey.org/Workarounds:_Manip...rs_-_Array_questions ).
Do I have to use another template?
Thank you for your help!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago #120425 by tpartner
Can you provide a link to a live test survey?

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
8 years 11 months ago #120432 by mafo

tpartner wrote: Can you provide a link to a live test survey?

That's it:
forum-mainz-umfragen.de/index.php/235614/lang-de
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago #120463 by tpartner
You do have a JavaScript error - "ReferenceError: V3 is not defined".

You have used the question code, not the question ID .

Replace this line:
Code:
var qID = V3;

With this line:
Code:
var qID = {QID};

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
8 years 11 months ago #120583 by mafo

tpartner wrote: You do have a JavaScript error - "ReferenceError: V3 is not defined".

You have used the question code, not the question ID .

Replace this line:

Code:
var qID = V3;

With this line:
Code:
var qID = {QID};


Thank you for your great help :).
The topic has been locked.
More
8 years 11 months ago #120591 by mafo
What if I changed
Code:
#limesurvey table.question thead td {
  background-color: #FFFFFF;
}

to
Code:
#limesurvey table.question thead td {
  background-color: #D6E3EE;
}

such that the head of the array, namely the value labels, gets another background colour.
In this case, the blank column between the last and the next-to-last column also gets the same background colour at its head although there is no text. How can I fix this?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago #120633 by tpartner
Try this:
Code:
#limesurvey table.question thead .spacerCell {
  background-color: #FFFFFF !important;
}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose