- Posts: 256
- Thank you received: 37
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
range selector
- first
- Topic Author
- Offline
- Elite Member
Less
More
10 years 8 months ago #97708
by first
Survey Designer and Programmer
range selector was created by first
Hi
Supoose I have a question in a survey that is related to the price of a product.There are 2 sub questions "definetly willing to pay", "definetly not willing to pay" . I have couple of price like $1 $4 $7 $12 etc.Now I need slider or something like that to capture the range . I searched nd found that we can make range sliders using jquery but right now I m learning javascript..maybe I have to wait for some time before I understand jquery. In the mean time can u plz suggest is there is some other way to do it. You can consider the range selector as a feature request in limesurvey as well.
Supoose I have a question in a survey that is related to the price of a product.There are 2 sub questions "definetly willing to pay", "definetly not willing to pay" . I have couple of price like $1 $4 $7 $12 etc.Now I need slider or something like that to capture the range . I searched nd found that we can make range sliders using jquery but right now I m learning javascript..maybe I have to wait for some time before I understand jquery. In the mean time can u plz suggest is there is some other way to do it. You can consider the range selector as a feature request in limesurvey as well.
Survey Designer and Programmer
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13907
- Thank you received: 2546
10 years 8 months ago #97716
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.
Replied by DenisChenu on topic range selector
Hello,
Tony (tpartner) solution here : www.limesurvey.org/en/forum/can-i-do-thi...e-slider-in-ls#93686
Tony (tpartner) solution here : www.limesurvey.org/en/forum/can-i-do-thi...e-slider-in-ls#93686
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: first
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
10 years 8 months ago #97729
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic range selector
And now added to the workarounds in the Wiki -
manual.limesurvey.org/Workarounds:_Quest...plating#Range_Slider
.
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, first
The topic has been locked.
- first
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 256
- Thank you received: 37
10 years 8 months ago #97749
by first
Survey Designer and Programmer
Replied by first on topic range selector
First of all thanks a lot for your help.
All the slider that I found on Lime survey workaround page or on jquery site " jqueryui.com/slider/#range " are either having step value equal to 1 or any other whole number.But the potential price of a product may not have same step increment. The prices here are like $1 $4 $7 $12 and so on..You can see the price are not increasing with the same step value. How can I cusomize the slider.
Thanks
All the slider that I found on Lime survey workaround page or on jquery site " jqueryui.com/slider/#range " are either having step value equal to 1 or any other whole number.But the potential price of a product may not have same step increment. The prices here are like $1 $4 $7 $12 and so on..You can see the price are not increasing with the same step value. How can I cusomize the slider.
Thanks
Survey Designer and Programmer
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
10 years 8 months ago #97750
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic range selector
I'm not sure you can do that. I believe you need equal steps.
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: first
The topic has been locked.
- first
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 256
- Thank you received: 37
10 years 8 months ago #97751
by first
Survey Designer and Programmer
Replied by first on topic range selector
Okay,.. I will experiment with it.
Survey Designer and Programmer
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13907
- Thank you received: 2546
10 years 8 months ago #97755
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.
Replied by DenisChenu on topic range selector
Think you can use "step 1" BUT change the value seeing by user.
Use an array of value like this:
myprice=;
Make a slider from 0 to 3
Update Tony script with something like this:
Denis
Use an array of value like this:
myprice=;
Make a slider from 0 to 3
Update Tony script with something like this:
Code:
$('#slider-callout-min-'+qID).text(myprice[ui.values[0]]); $('#slider-callout-max-'+qID).text(myprice[ui.values[1]]);
Denis
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: first
The topic has been locked.