Flip vertical slider

More
10 months 4 weeks ago - 10 months 4 weeks ago #146312 by shivani123
shivani123 created the topic: Flip vertical slider
Can I Flip vertical slider of multiple numerical question type slider(vertical).

As in screenshot the slider should star at bottom and with limit 1 and end with limit 10 at top.
Can someone give solution on this..
Thank you...
Attachments:
Last Edit: 10 months 4 weeks ago by shivani123.

Please Log in to join the conversation.

More
10 months 4 weeks ago #146313 by Ben_V
Ben_V replied the topic: Flip vertical slider
Please check this previous post

Customize or create new Question type

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)

Please Log in to join the conversation.

More
10 months 4 weeks ago #146314 by DenisChenu
DenisChenu replied the topic: Flip vertical slider
No need extra system / hacking etc ....



Maybe just some 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Attachments:

Please Log in to join the conversation.

More
10 months 4 weeks ago #146317 by tpartner
tpartner replied the topic: Flip vertical slider
Placing this script in the question text will reverse the slider direction. (maybe this should be a question setting)

<script type="text/javascript" charset="utf-8">		
 
	$(document).ready(function() {		
		setTimeout(function() { 
			$('#question{QID} input[type="text"]').bootstrapSlider('setAttribute', 'reversed', true); 
			$('#question{QID} input[type="text"]').bootstrapSlider('refresh');
		}, 100);		
    });
</script>

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: shivani123

Please Log in to join the conversation.

More
10 months 4 weeks ago #146325 by jelo
jelo replied the topic: Flip vertical slider

DenisChenu wrote: No need extra system / hacking etc .... Maybe just some css

Reverse the vertical slider scale. Not from horizontal to vertical. How should that be done without the approach Tpartner is showing?

I tried to swap the min/max values. Which worked visually. But no way to drag the slider down since the logic prevented any movement.

Attachments:
The following user(s) said Thank You: shivani123

Please Log in to join the conversation.

More
10 months 4 weeks ago #146340 by tpartner
tpartner replied the topic: Flip vertical slider

How should that be done without the approach Tpartner is showing?

As I suggested, perhaps it should be a question setting. That way it could be included in the slider initiation function instead of applied after initiation (thus avoiding the small time delay). Of course, if it was a question setting, we would also need to handle the slider max/min and left/right text positions.

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
10 months 4 weeks ago #146341 by DenisChenu
DenisChenu replied the topic: Flip vertical slider
Ouos, seems i didn't see/understand the reverse :)

@tparner : why not a new attribute : seems easy in develop : github.com/LimeSurvey/LimeSurvey/blob/de...s/answer_row.php#L42

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: shivani123

Please Log in to join the conversation.

More
10 months 4 weeks ago #146343 by tpartner
tpartner replied the topic: Flip vertical slider
Yes, exactly :)
But you'd also need to handle the max/min text and left/right text positions (which don't seem to work very well in vertical anyway.)

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: shivani123

Please Log in to join the conversation.

More
10 months 4 weeks ago #146344 by DenisChenu
DenisChenu replied the topic: Flip vertical slider

tpartner wrote: But you'd also need to handle the max/min text and left/right text positions (which don't seem to work very well in vertical anyway.)

Yep, seems broken currently. But : any idea for the best place ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
10 months 4 weeks ago #146347 by jelo
jelo replied the topic: Flip vertical slider
Most survey packages stick to left / right labeling when offering vertical slider in the same question type as horizontal slider.

Often there is a section for visual representation.
Beside a option for just hiding values you sometimes find a option to "flip min and max values".

Personally I would find a option for N/A (not applicable) more useful than flipping the scale orientation ;-)
But Limesurvey is trying to cramp too many options in too few questiontype.
More questiontypes with less options will be better for users and developers. Question type objects where are you?

Please Log in to join the conversation.

More
10 months 4 weeks ago #146348 by tpartner
tpartner replied the topic: Flip vertical slider
My opinion for the text positioning in vertical sliders would be:

Min/Max text - To the left of the slider
Left/Right text - Above and below the slider


Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:

Please Log in to join the conversation.

More
10 months 4 weeks ago #146352 by jelo
jelo replied the topic: Flip vertical slider

tpartner wrote: My opinion for the text positioning in vertical sliders would be:
Min/Max text - To the left of the slider
Left/Right text - Above and below the slider

I second that.
But I am only into left to right reading.
I assume RTL reader are also top to down oriented.

Please Log in to join the conversation.

More
10 months 4 weeks ago #146354 by tpartner
tpartner replied the topic: Flip vertical slider
I'm actually not sure why the default direction for the vertical slider is top to bottom. My personal feeling is that if you raise a vertical slider control, you should be raising the value, not the opposite.

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
10 months 4 weeks ago #146364 by tammo
tammo replied the topic: Flip vertical slider


Tammo ter Hark at Tools for Research
Proud developers of the TFR Responsive Limesurvey template
toolsforresearch.com/limesurvey-responsive-template

Please Log in to join the conversation.

More
10 months 4 weeks ago - 10 months 4 weeks ago #146368 by tammo
tammo replied the topic: Flip vertical slider
In my view normally the highest value should be on top and the lowest at the bottom, when you have ordinal or scale values.

There could be exceptions to this. I would say that you could possibly solve that using an extra class on the question (reverse or reverse-scale) and use that class to do some magic in css/javascript of your template.

Be aware: this is not available in the current templates as far as I know, but it would certainly be a good idea for new/custom templates.

I am looking for several of these examples, which can be solved with the extra class possibility in 2.5x and up.

Tammo


Tammo ter Hark at Tools for Research
Proud developers of the TFR Responsive Limesurvey template
toolsforresearch.com/limesurvey-responsive-template
Last Edit: 10 months 4 weeks ago by tammo.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!