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

SUJET : Can I INSERTAN a value from Other (please, sepecify) text field?

Can I INSERTAN a value from Other (please, sepecify) text field? il y a 1 an 4 mois #95151

  • kachne
  • Portrait de kachne
  • Hors ligne
  • Fresh Lemon
  • Messages : 14
  • Karma: 0
Hello.

In my survey, I am asking for a game title and I have a List (Radio) type of question that has a number (5) of answers + an option "other" with mandatory text input (Q01). In the following question (Q02), I would like to ask about the one selected title using INSERTAN. It works perfectly for the pre-defined answers, but when the respondents selects "other" and fills the text, only string "-oth-" is inserted in the wording of Q02 (and that makes the question meaningless).

Is there a way how to insert the content of the text field into the wording of Q02? Please note that it is not a comment filed. I assume I should use some conditioning as

{if(Q01_a == "Y" || Q01_b == "Y" || Q01_c == "Y" || Q01_d == "Y" || Q01_e == "Y" ISERTAN:Q01) && if(Q01_?? == "Y" INSERTAN:Q01_??_??)}

but I am not sure what would be the SGQA code for the option other and for the linked text filed.

Any hints? Many thanks in advance.
Katerina.
L'administrateur a désactivé l'accès en écriture pour le public.

Can I INSERTAN a value from Other (please, sepecify) text field? il y a 1 an 4 mois #95154

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4186
  • Remerciements reçus 786
  • Karma: 359
If the Q01 answer codes are "a", "b", "c", "d" and "e", then the equation for the inserted text would be:
{if(Q01.code == 'a' OR Q01.code == 'b' OR Q01.code == 'c' OR Q01.code == 'd' OR Q01.code == 'e', Q01.shown, Q01_other.shown)}
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: kachne

Can I INSERTAN a value from Other (please, sepecify) text field? il y a 1 an 4 mois #95172

  • kachne
  • Portrait de kachne
  • Hors ligne
  • Fresh Lemon
  • Messages : 14
  • Karma: 0
Thanks a lot! It works! :)
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.176 secondes
Donation Image