- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Custom slider for custom array from -value to +value with default 0-position
- Lymbics
- Topic Author
- Offline
- New Member
Less
More
5 years 2 days ago #183635
by Lymbics
Custom slider for custom array from -value to +value with default 0-position was created by Lymbics
Hello,
This a question by a newbie LS user. Apologies if posted in the wrong forum or already answered.
I am looking for an example, demo or template (or better: off-the-shelf solution) that shows/allows me to create custom sliders that have a scale from -3 to +3 with a default selection of the middle 0-position.
The slider label should not read the numerical value, but a word that expresses the selected value.
I found this thread that pushed me in the right direction re. slider/label:
www.limesurvey.org/forum/design-issues/1...theme-sliders#183283
Attached a quick example of the scale type I am looking for.
In the end, I'd like the slider values of -3 to +3 be translated to a database value from 0 to 7 (-3=0, -2=1 ... +2=6, +3=7).
I am using a self-hosted LS installation, running version 3.15.1+181017
Thanks for your help.
This a question by a newbie LS user. Apologies if posted in the wrong forum or already answered.
I am looking for an example, demo or template (or better: off-the-shelf solution) that shows/allows me to create custom sliders that have a scale from -3 to +3 with a default selection of the middle 0-position.
The slider label should not read the numerical value, but a word that expresses the selected value.
I found this thread that pushed me in the right direction re. slider/label:
www.limesurvey.org/forum/design-issues/1...theme-sliders#183283
Attached a quick example of the scale type I am looking for.
In the end, I'd like the slider values of -3 to +3 be translated to a database value from 0 to 7 (-3=0, -2=1 ... +2=6, +3=7).
I am using a self-hosted LS installation, running version 3.15.1+181017
Thanks for your help.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12923
- Thank you received: 3977
5 years 1 day ago - 5 years 1 day ago #183650
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Custom slider for custom array from -value to +value with default 0-position
Hi,
1. here is a workaround to get the text on the slider handle with attached sample
www.limesurvey.org/forum/design-issues/9...alues-as-text#170835
2. If you do not display the values but the text, the scale "-3" to "+3" is irrelevant.
Just use a scale from 0-6, initial value 3.
Best regards
Joffm
Like this; more css is up to you.
1. here is a workaround to get the text on the slider handle with attached sample
www.limesurvey.org/forum/design-issues/9...alues-as-text#170835
2. If you do not display the values but the text, the scale "-3" to "+3" is irrelevant.
Just use a scale from 0-6, initial value 3.
Best regards
Joffm
Like this; more css is up to you.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 5 years 1 day ago by Joffm.
The following user(s) said Thank You: Lymbics
The topic has been locked.
- Lymbics
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
5 years 1 day ago #183659
by Lymbics
Hello Joffm,
Indeed. The -/+ scale was the initial thought of getting a label that indicated less/more so.
Thanks for the reply. Will try the script.
Replied by Lymbics on topic Custom slider for custom array from -value to +value with default 0-position
Joffm wrote: 2. If you do not display the values but the text, the scale "-3" to "+3" is irrelevant.
Just use a scale from 0-6, initial value 3.
Hello Joffm,
Indeed. The -/+ scale was the initial thought of getting a label that indicated less/more so.
Thanks for the reply. Will try the script.
The topic has been locked.