Welcome to the LimeSurvey Community Forum

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

Slider with changing precision?

  • irs_sept
  • irs_sept's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 5 months ago #221161 by irs_sept
Slider with changing precision? was created by irs_sept
Hello!
Is it possible to tweak a slider to have a different precision at different values?
For example: Having a precision of 1 for values 0-20, and a precision of 5 for values 21-500

THANKS!
(LimeSurvey Cloud, version 3.27.19)
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 5 months ago - 2 years 5 months ago #221164 by Joffm
Replied by Joffm on topic Slider with changing precision?
Hi, an existing solution is to use tick marks resp. texts
[url] forums.limesurvey.org/forum/design-issue...ical-labeling#213600 [/url]

You get something like this




Your decision if you use both or only tick marks or tip texts.
 

 

Well, it's still a slider from 1-18.
So you have to recalculate the values in an equation, what is very easy.
In your case:
{if(QSlider<21,QSlider,(QSlider-20)*5+20)}

Joffm


 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 5 months ago by Joffm.
The topic has been locked.
  • irs_sept
  • irs_sept's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 5 months ago #221167 by irs_sept
Replied by irs_sept on topic Slider with changing precision?
Thanks! I'm already using those scripts for my slider. But I'm looking for a solution where the distance between the values are still correct. So keep the original range but kind of disable the slider for some numbers (21-24, 26-29, ...) - just like "slider-accuracy" is working. But in my case not with a single value for the whole slider, but with different values for different ranges.

I guess using expressions for the slider-accuracy is not helping in this case because it is not a dynamic value, but a fixed value when loading the question-page?!?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 5 months ago #221168 by Joffm
Replied by Joffm on topic Slider with changing precision?
Therefore you should always mention what you  already have tried.
Please, ease the life of us volunteers, who do this in our spare time.

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 5 months ago #221170 by tpartner
Replied by tpartner on topic Slider with changing precision?
As far as I know, you cannot modify the precision as you wish in either the Bootstrap or jQuery sliders.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • irs_sept
  • irs_sept's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 5 months ago - 2 years 5 months ago #221178 by irs_sept
Replied by irs_sept on topic Slider with changing precision?

Therefore you should always mention what you  already have tried.
Please, ease the life of us volunteers, who do this in our spare time.

Best regards
Joffm
 
I'm sorry. I use the German version of LS and mistakenly translated slider-accuracy as slider-precision. I think that's where the misunderstanding comes from.
Anyhow thank you very much, I really appreciate your help here!
Last edit: 2 years 5 months ago by irs_sept.
The topic has been locked.
  • irs_sept
  • irs_sept's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 5 months ago #221179 by irs_sept
Replied by irs_sept on topic Slider with changing precision?

As far as I know, you cannot modify the precision as you wish in either the Bootstrap or jQuery sliders.

 
Ah, that's too bad. Had hoped that it is somehow possible with Java.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 5 months ago #221194 by DenisChenu
Replied by DenisChenu on topic Slider with changing precision?
Just use 2 slider question type and hide the question part of the second with css.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • irs_sept
  • irs_sept's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 5 months ago #221208 by irs_sept
Replied by irs_sept on topic Slider with changing precision?
@DenisChenu: I don't understand what you are suggesting...do you mean using two sub-questions with one slider from 0-20 (with accuracy=1) and another slider from 21-max (with accuracy=5)?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 5 months ago #221241 by DenisChenu
Replied by DenisChenu on topic Slider with changing precision?
No

Question 1 : with slider 1 to 20, step 1, show Question text
Question 2 : with slider 20 to 500, step 5, Hide question text, and some other css

You can even use skel-group to show it in same "Question"
extensions.sondages.pro/themes-and-templ...b-group-inside-group

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 5 months ago #221243 by DenisChenu
Replied by DenisChenu on topic Slider with changing precision?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: irs_sept
The topic has been locked.
  • irs_sept
  • irs_sept's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 5 months ago #221250 by irs_sept
Replied by irs_sept on topic Slider with changing precision?
Thanks Denis! Unfortunately not what I'm looking for. But SkelVanilla looks really interesting. Hope I`ll find some time to test it.

Thanks!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose