Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi
  • Page :
  • 1
  • 2

SUJET : Piping 'Other' option/category from multiple choice using array filter

Piping 'Other' option/category from multiple choice using array filter il y a 2 ans 8 mois #74468

  • gwiesner
  • Portrait de gwiesner
  • Hors ligne
  • Fresh Lemon
  • Messages : 5
  • Karma: 0
Hi All,

Just wondering if it is possible pipe the 'Other' category from a multiple choice into an array using the arry filter. Ideally I would like to pipe the specified text, but even the broad category of 'Other' would suffice.

I am using LimeService.

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

Re: Piping 'Other' option/category from multiple choice using array filter il y a 2 ans 8 mois #74474

  • Mazi
  • Portrait de Mazi
  • Hors ligne
  • LimeSurvey Team
  • Messages : 5331
  • Remerciements reçus 296
  • Karma: 249
To my knowledge that was something that wasn't implemented at the 1.91 branch yet.

Limesurvey 1.92 (RC4 was just released) uses the Expression Manager for this and I saw a working example at the forums which showed how to pipe the "other" text.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
L'administrateur a désactivé l'accès en écriture pour le public.
Cet utilisateur a été remercié pour son message par: gwiesner

Re: Piping 'Other' option/category from multiple choice using array filter il y a 2 ans 7 mois #75173

  • amoeba
  • Portrait de amoeba
  • Hors ligne
  • Fresh Lemon
  • Messages : 2
  • Karma: 0
Hi,

I also tried to do this, but I cannot find the solution. Pls Help.

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

Re: Piping 'Other' option/category from multiple choice using array filter il y a 2 ans 7 mois #75186

  • TMSWhite
  • Portrait de TMSWhite
  • Hors ligne
  • LimeSurvey Team
  • Messages : 759
  • Remerciements reçus 82
  • Karma: 36
There is a working example on the 1.92 demo site here.

You can login as admin and show its logic file to see how the piping works.
L'administrateur a désactivé l'accès en écriture pour le public.
Cet utilisateur a été remercié pour son message par: gwiesner, amoeba

Re: Piping 'Other' option/category from multiple choice using array filter il y a 2 ans 7 mois #75187

  • gwiesner
  • Portrait de gwiesner
  • Hors ligne
  • Fresh Lemon
  • Messages : 5
  • Karma: 0
Looks great. Are there plans to upgrade LimeService (v1.91+) to 1.92 in the near future?
Cheers.
L'administrateur a désactivé l'accès en écriture pour le public.

Re: Piping 'Other' option/category from multiple choice using array filter il y a 2 ans 7 mois #75190

  • amoeba
  • Portrait de amoeba
  • Hors ligne
  • Fresh Lemon
  • Messages : 2
  • Karma: 0
Thanks a lot! It solved my problem.

Experimenting with javascript and the jsName attribute I have got "<span id='LEMtailor_Q_21_30'>java87887X14X211</span>" instead of 'java87887X14X211'. Should I report it in bugtracker or I made a mistake?
Cheers
L'administrateur a désactivé l'accès en écriture pour le public.

Re: Piping 'Other' option/category from multiple choice using array filter il y a 2 ans 7 mois #75219

  • Mazi
  • Portrait de Mazi
  • Hors ligne
  • LimeSurvey Team
  • Messages : 5331
  • Remerciements reçus 296
  • Karma: 249
gwiesner écrit:
Looks great. Are there plans to upgrade LimeService (v1.91+) to 1.92 in the near future?
Cheers.
Limesurvey version 1.92 will be available at LimeService once it is fully tested and runs stable. This might take some more weeks.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
L'administrateur a désactivé l'accès en écriture pour le public.

Re: Piping 'Other' option/category from multiple choice using array filter il y a 2 ans 7 mois #75287

  • TMSWhite
  • Portrait de TMSWhite
  • Hors ligne
  • LimeSurvey Team
  • Messages : 759
  • Remerciements reçus 82
  • Karma: 36
amoeba écrit:
Thanks a lot! It solved my problem.

Experimenting with javascript and the jsName attribute I have got "<span id='LEMtailor_Q_21_30'>java87887X14X211</span>" instead of 'java87887X14X211'. Should I report it in bugtracker or I made a mistake?
Cheers

No, that isn't a bug. That code is how EM supports dynamic substitution on the same page. Perhaps you were testing the demo listed below, selected the Other option, and saw the message asking why you liked {Q1_other} best. The reason it didn't show the fully substituted value is that EM would have had to do recursive substitution within a page, which it can't do. However, if does do recursive substitution between pages, so if you want to use the Other value on a different page, you will see the entered value for Other was you would expect.
L'administrateur a désactivé l'accès en écriture pour le public.
Cet utilisateur a été remercié pour son message par: amoeba

Re: Piping 'Other' option/category from multiple choice using array filter il y a 2 ans 2 mois #84224

  • gwiesner
  • Portrait de gwiesner
  • Hors ligne
  • Fresh Lemon
  • Messages : 5
  • Karma: 0
Just upgraded to 1.92 and trying to solve this piping problem. I now have the issue that 'Other-specify' is always piped to subsequent array question and it doesn' seem to be a "checkable/selectable" item in the multi-choice question.

I am but a simple man. To me Java is an island in Indonesia..... Therfore if anyone can help me pipe the 'Other-specify' text into the following question (when it is selected!) I would be most appreciative. I have attached a screen capture of the relevant questions.

Many thanks.
Pièces jointes :
L'administrateur a désactivé l'accès en écriture pour le public.

Re: Piping 'Other' option/category from multiple choice using array filter il y a 2 ans 2 mois #84238

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4271
  • Remerciements reçus 806
  • Karma: 369
You can use an answer code "other" for the question 2 "Other" option and an expression to pipe in the value as in the illustration below (where my Q1 code is multiOpt_p1_1). This will make both the filter and the piping work.
Capture3_2012-08-03.JPG


So the result is:
Capture2_2012-08-03.JPG


Here's a working example:

Fichier attaché :

Nom du fichier : limesurvey_survey_96898.lss
Taille du ficher : 29 KB
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.
  • Page :
  • 1
  • 2
Modérateurs: ITEd
Temps de génération de la page : 0.152 secondes
Donation Image