Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi

SUJET : range selector

range selector il y a 1 an 3 mois #97708

  • trivender
  • Portrait de trivender
  • Hors ligne
  • Expert Lime
  • Messages : 146
  • Remerciements reçus 7
  • Karma: 7
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.
Trivender Singh
Survey Designer and Programmer
"I always suggest to have a group by group display layout and create a seprate group for each question. This will be extra work but you will get flexiblity to create your question by using more than more lime survey question types."
L'administrateur a désactivé l'accès en écriture pour le public.

range selector il y a 1 an 3 mois #97716

  • DenisChenu
  • Portrait de DenisChenu
  • Hors ligne
  • Moderator Lime
  • Messages : 6451
  • Remerciements reçus 844
  • Karma: 249
L'administrateur a désactivé l'accès en écriture pour le public.
Cet utilisateur a été remercié pour son message par: trivender

range selector il y a 1 an 3 mois #97729

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4281
  • Remerciements reçus 807
  • Karma: 370
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
L'administrateur a désactivé l'accès en écriture pour le public.
Cet utilisateur a été remercié pour son message par: DenisChenu, trivender

range selector il y a 1 an 3 mois #97749

  • trivender
  • Portrait de trivender
  • Hors ligne
  • Expert Lime
  • Messages : 146
  • Remerciements reçus 7
  • Karma: 7
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
Trivender Singh
Survey Designer and Programmer
"I always suggest to have a group by group display layout and create a seprate group for each question. This will be extra work but you will get flexiblity to create your question by using more than more lime survey question types."
L'administrateur a désactivé l'accès en écriture pour le public.

range selector il y a 1 an 3 mois #97750

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4281
  • Remerciements reçus 807
  • Karma: 370
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
L'administrateur a désactivé l'accès en écriture pour le public.
Cet utilisateur a été remercié pour son message par: trivender

range selector il y a 1 an 3 mois #97751

  • trivender
  • Portrait de trivender
  • Hors ligne
  • Expert Lime
  • Messages : 146
  • Remerciements reçus 7
  • Karma: 7
Okay,.. I will experiment with it.:)
Trivender Singh
Survey Designer and Programmer
"I always suggest to have a group by group display layout and create a seprate group for each question. This will be extra work but you will get flexiblity to create your question by using more than more lime survey question types."
L'administrateur a désactivé l'accès en écriture pour le public.

range selector il y a 1 an 3 mois #97755

  • DenisChenu
  • Portrait de DenisChenu
  • Hors ligne
  • Moderator Lime
  • Messages : 6451
  • Remerciements reçus 844
  • Karma: 249
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:
$('#slider-callout-min-'+qID).text(myprice[ui.values[0]]);
$('#slider-callout-max-'+qID).text(myprice[ui.values[1]]);

Denis
L'administrateur a désactivé l'accès en écriture pour le public.
Cet utilisateur a été remercié pour son message par: trivender
Modérateurs: ITEd
Temps de génération de la page : 0.136 secondes
Donation Image