Welcome to the LimeSurvey Community Forum

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

Multiple Numerical Input: Slider alignment in a multi-row answer alternative

  • ischaab
  • ischaab's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 8 months ago #186782 by ischaab
Hello everybody,

after searching this board for several hours I've decided to finally post my question.

I'm currently preparing a survey, where one of the questions can be answered through multiple numerical input by using a total of 6 sliders. The subquestions contain a table and have therefore not only one row which corresponds directly to the slider. As you can see in the following picture this leads to a mismatch in positions of subquestion and slider.

What I would like to do is either vertically align the slider in the middle or at the bottom of the subquestion position. I've therefore tried to adjust the standard "fruity" template which - due to my poor IT skills - didn't work out. Could you maybe help me with the necessary code or settings to adjust the position of the slider?

If possible I would also like to reduce the distance between the subquestions which would be, however, just a nice to have.



Thank you very much in advance!!

Ilja
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 8 months ago #186784 by Joffm
Hi, Ilja,

please attach your survey with this question as *.lss.

As we all aere volunteers it's a lot of work to rebuild your design.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • ischaab
  • ischaab's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 8 months ago #186787 by ischaab
Hello Joffm,


sure, here is the .lss file:

File Attachment:

File Name: limesurvey...6313.lss
File Size:71 KB



Ilja
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 8 months ago - 4 years 8 months ago #186790 by Joffm
Hi, Ilja,

to move the slider you may insert into your question text
Code:
<style type="text/css">.slider-list .slider-container {
    margin-top: 5em;  //Adapt to your needs
}
</style>



It doesn't work for your first item (obvious).
So I'd recommend to move the header to the question text.


Joffm

P.S.
Remove the values of "Minimaler Summenwert" and "Maximaler Summenwert".
Only "Gleich Summenwert"

This text is very confusing_

"Sum equal 100", and at the same time "sum between 0 and 100"

And something practical thing: Adjusting such short sliders with a resolution from 0-100 to a sum of exactly 100 "ist eine ziemliche Fummelei".

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 years 8 months ago by Joffm.
The topic has been locked.
  • ischaab
  • ischaab's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 8 months ago #186813 by ischaab
Hi Joffm,

thank you for the help! The code solved the major part of my problem.

I have two short additional questions:
1. How did you hide the text "Die Summe muss gleich 100 sein."
I've tried to separate the table but than the above mentioned expression separates the header from the question text which is not quite optimal.

2. Do you maybe also know an expression to reduce the distance between the subquestions?

Regarding your practical input: Thanks for that as well, I've increased the lenght of the sliders so that answering the question should be easier now.

Best regards,
Ilja
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 8 months ago #186832 by Joffm

1. How did you hide the text "Die Summe muss gleich 100 sein."

Code:
.question-valid-container {
     display:none;
}

2. Do you maybe also know an expression to reduce the distance between the subquestions?

No; I had something in the former version branch, but not for 3.x

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: ischaab
The topic has been locked.
  • ischaab
  • ischaab's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 8 months ago #186842 by ischaab
And again: Thank you very much - I've managed to build the question accordingly.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose