Slider with changing precision?

More
1 month 2 weeks ago #221161 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)

Please Log in to join the conversation.

More
1 month 2 weeks ago - 1 month 2 weeks ago #221164 by Joffm
Hi, an existing solution is to use tick marks resp. texts
forums.limesurvey.org/forum/design-issue...ical-labeling#213600

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
Attachments:
Last edit: 1 month 2 weeks ago by Joffm.

Please Log in to join the conversation.

More
1 month 2 weeks ago #221167 by irs_sept
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?!?

Please Log in to join the conversation.

More
1 month 2 weeks ago #221168 by Joffm
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

Please Log in to join the conversation.

More
1 month 2 weeks ago #221170 by tpartner
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.

Please Log in to join the conversation.

More
1 month 2 weeks ago - 1 month 2 weeks ago #221178 by irs_sept

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: 1 month 2 weeks ago by irs_sept.

Please Log in to join the conversation.

More
1 month 2 weeks ago #221179 by irs_sept

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.

Please Log in to join the conversation.

More
1 month 1 week ago #221194 by DenisChenu
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.

Please Log in to join the conversation.

More
1 month 1 week ago #221208 by irs_sept
@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)?

Please Log in to join the conversation.

More
1 month 1 week ago #221241 by DenisChenu
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.

Please Log in to join the conversation.

More
1 month 1 week ago #221243 by DenisChenu

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

Please Log in to join the conversation.

More
1 month 1 week ago #221250 by irs_sept
Thanks Denis! Unfortunately not what I'm looking for. But SkelVanilla looks really interesting. Hope I`ll find some time to test it.

Thanks!

Please Log in to join the conversation.

More
1 month 1 week ago - 1 month 1 week ago #221256 by DenisChenu

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 Denis! Unfortunately not what I'm looking for.


Something i really don't understand here … 

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.
Attachments:
Last edit: 1 month 1 week ago by DenisChenu.

Please Log in to join the conversation.

More
1 month 1 week ago #221262 by tpartner
I think the intention is to have this in a single question so there cannot be two answers.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

More
1 month 1 week ago #221266 by DenisChenu

I think the intention is to have this in a single question so there cannot be two answers.
 

Arg !
Surely, thank you

For user (particpant) it muts be really awfull to answer and understand …

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.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now