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

SUJET : Can LimeSurvey randomise like this?

Can LimeSurvey randomise like this? il y a 1 an 9 mois #92753

  • mvdct
  • Portrait de mvdct
  • Hors ligne
  • Senior Lime
  • Messages : 41
  • Remerciements reçus 1
  • Karma: 0
Hi LimeSurvey users,

Can LimeSurvey do this?

I want my participants to answer a short series of questionnaires. Then I want them to listen to just one of three possible audio recordings. Then I want them to answer one other short questionnaire.
(All of the questionnaires are the same for all participants irrespective of the audio they listen too)

I can embed the audio into the questions. Thats not a problem. The question I have is can Limesurvey randomly select just one of these three possible recordings?

If LimeSurvey can do it, is it best to set it up so that the three questions are all in one question group or do you set up three separate question groups each with one questions in there?

Remember, I don't want all three questions presented in a random order, I want a random one of three possible questions presented. Can it be done?

Thanks in advance.
L'administrateur a désactivé l'accès en écriture pour le public.

Can LimeSurvey randomise like this? il y a 1 an 9 mois #92754

  • holch
  • Portrait de holch
  • Hors ligne
  • LimeSurvey Team
  • Messages : 2962
  • Remerciements reçus 381
  • Karma: 124
So basically you are not "randomizing". ;-)

From what I know, LS does not have this feature. Maybe the Expression Manager is able to do this, or maybe you need to create a javacript that writes a random number into a hidden text fiel, which you then can use for conditions to hide 2 of the 3 questions.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
L'administrateur a désactivé l'accès en écriture pour le public.
Cet utilisateur a été remercié pour son message par: mvdct

Can LimeSurvey randomise like this? il y a 1 an 9 mois #92758

  • mvdct
  • Portrait de mvdct
  • Hors ligne
  • Senior Lime
  • Messages : 41
  • Remerciements reçus 1
  • Karma: 0
Ah. So thats not randomising then!! Useful to know. Thank you ;-)

So you're right, if it is not "built-in", is there a work around? Can Expression Manager do it? Or javascript?

Please let me know if you have any thoughts anyone.

Thanks in advance.
L'administrateur a désactivé l'accès en écriture pour le public.

Can LimeSurvey randomise like this? il y a 1 an 9 mois #92759

  • holch
  • Portrait de holch
  • Hors ligne
  • LimeSurvey Team
  • Messages : 2962
  • Remerciements reçus 381
  • Karma: 124
Well, thinking about it, it is actually some kind of randomisation.

Expression Manager is really mighty and I still haven't had the chance to look into it. You can definitely do it with Javascript as I described:
-Create a function that will randomly create a number from 1-x (with x the amount of questions to be randomized).
-Write this number into a hidden text question.
-Create a condition for each of the x questions to show or hide it depending on the random number saved in the hidden text field.

There might be a more elegant solution in EM, but I am not sure. Maybe someone more experienced with Expression Manager can help here?
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
L'administrateur a désactivé l'accès en écriture pour le public.

Can LimeSurvey randomise like this? il y a 1 an 9 mois #92760

  • holch
  • Portrait de holch
  • Hors ligne
  • LimeSurvey Team
  • Messages : 2962
  • Remerciements reçus 381
  • Karma: 124
It is not exactly your case, but it should give an idea how to work with randomization and random numbers in EM:

docs.limesurvey.org/Expression+Manager+S...urvey#Screen_Shots_9
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
L'administrateur a désactivé l'accès en écriture pour le public.
Cet utilisateur a été remercié pour son message par: mvdct

Can LimeSurvey randomise like this? il y a 1 an 9 mois #92761

  • mvdct
  • Portrait de mvdct
  • Hors ligne
  • Senior Lime
  • Messages : 41
  • Remerciements reçus 1
  • Karma: 0
Thank you again for your help.

It seems that LimeSurvey can do this using Expression Manager. Very easily too.

It was actually the link just below the one you sent me earlier that provides the correct information:
docs.limesurvey.org/Expression+Manager+S...e_Question_Per_Group

In short:
i. Set up a question group before the question group you want to randomly select one question from.
ii. In that question group place an equation question - call it ask1 (see relevance equation below)
iii. Set this as the equation {floor(rand(1,3.9999))} (3.9... for three options, 4.9... for 4, etc.)
iv. hide the question so participants don't see it
v. Then for each of the questions you want LimeSurvey to randomly select from set a relevance equation: ask1 == 1 [1-3]

Thanks.
L'administrateur a désactivé l'accès en écriture pour le public.
Cet utilisateur a été remercié pour son message par: kachne

Can LimeSurvey randomise like this? il y a 1 an 9 mois #92762

  • holch
  • Portrait de holch
  • Hors ligne
  • LimeSurvey Team
  • Messages : 2962
  • Remerciements reçus 381
  • Karma: 124
Great that it worked out and thanks for taking the time to post the solution here. This might help others with the same problem.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
L'administrateur a désactivé l'accès en écriture pour le public.

Can LimeSurvey randomise like this? il y a 1 an 9 mois #92940

  • lepsid
  • Portrait de lepsid
  • Hors ligne
  • Fresh Lemon
  • Messages : 14
  • Karma: 0
Hello!
This example is very useful. What I am trying to do now is to show three questions randomly from group. I played with Expression Manager, but cannot figure out how to setup this.
Can anyone help there using the same example.

Thank you.
L'administrateur a désactivé l'accès en écriture pour le public.

Can LimeSurvey randomise like this? il y a 1 an 9 mois #92999

  • lepsid
  • Portrait de lepsid
  • Hors ligne
  • Fresh Lemon
  • Messages : 14
  • Karma: 0
So, any inputs here?
L'administrateur a désactivé l'accès en écriture pour le public.
Modérateurs: ITEd
Temps de génération de la page : 0.140 secondes
Donation Image