Welcome to the LimeSurvey Community Forum

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

Lambda Slider / welfare tradeoff ratios

More
3 weeks 2 days ago #273192 by PRIF2020
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Cloud Version 6.15.24
Own server or LimeSurvey hosting: LimeSurvey hosting
Survey theme/template:
==================

Dear Forum,

I struggle both conceptually and technically to implement a so called Lambda Slider in LimeSurvey. 

Such a slider triggers two different functions, which determine the size of two bars. You can find a working version under the following link:
experiments.evullab.org/lambda-slider  

The developer of this slider also has an informative github page, which has code to embed a standalone slider in Qualtrics, see here: GitHub - jameswhqi/wtr-slider-data: Data and code for the Lambda Slider paper Embedding the standalone slider also works in Limesurvey. I just made a text display question, which contains a script for the iframe, see here

prif.limequery.com/776966?lang=en  

However, I struggle to record the values of the slider in my responses so I could use and analyse them. Do you know how I could do this in limesurvey?

Also I would be interested in how you would approach building the Lambda slider from the scratch in Limesurvey, so I would not have to rely on the external website and the iframe solution.

Thanks for help!
Best,
Felix


 

Please Log in to join the conversation.

More
3 weeks 2 days ago #273197 by Joffm
Hi,
in my opinion you can use @tpartners "range slider" script.
Adapt to two sections
Change the display from text field to progressbar. (if you want)
And enter the correct algorithm to calculate the values



Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

More
3 weeks 1 day ago #273199 by PRIF2020
Thanks a lot!

I will look into this.

Please Log in to join the conversation.

More
3 weeks 6 hours ago - 3 weeks 6 hours ago #273211 by Joffm
Hi,
here is my idea.
I hided the third section. and the tooltips.
Added the two progressbars
[url] getbootstrap.com/docs/5.3/components/progress/ [/url]

Now about the calculation:
The slieder has a range from 0 to 100 and a step of 1.
So in my opinion a quick and easy solution would be to hard code the 101 pairs into the javascript code.

 

Joffm

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 weeks 6 hours ago by Joffm.

Please Log in to join the conversation.

More
2 weeks 6 days ago - 2 weeks 6 days ago #273216 by Joffm
Hi,
here I used the bootstrap control "range".
This is obviously better and cleaner than to misuse the "range slider".
 
Stored values:
1. the slider position
2. the value "you receive"
3. the value "other receive"
 

File Attachment:

File Name: limesurvey...88_J.lss
File Size:29.65 KB


Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 weeks 6 days ago by Joffm.

Please Log in to join the conversation.

More
2 weeks 5 days ago #273218 by PRIF2020
Dear Joffm,

thank you so much. This is amazing and would have taken me weeks to design and implement. If there is anything I can do to return the favor, e.g. test or proofread something for you, just let me know.

Also, because we will perhaps use this in academic research, what is the best way to give credit to your work? 

Thanks again and all the best!
Felix

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose