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

SUJET : Can you use the survey language as a condition.

Can you use the survey language as a condition. il y a 4 mois 4 semaines #101725

  • Hendrik
  • Portrait de Hendrik
  • Hors ligne
  • Fresh Lemon
  • Messages : 7
  • Karma: 0
Hello,

We are trying to create a survey in several languages with some questions appearing only in some languages.

The survey needs to be anonymous. We will send the url for the specific language to the respondents in the specific country. We do not want to use a visible language switcher.

Some questions are only valid for the German language, others only for English, most questions are for all languages.

Is there any way in Limesurvey to base a condition on the current language, like:
"only use this question when survey_language equals German"

Kind regards,
Hendrik Jan
Dernière édition: il y a 4 mois 4 semaines par Hendrik. Raison: Spelling error
L'administrateur a désactivé l'accès en écriture pour le public.

Can you use the survey language as a condition. il y a 4 mois 3 semaines #101924

  • lgarzmann
  • Portrait de lgarzmann
  • Hors ligne
  • Fresh Lemon
  • Messages : 5
  • Karma: 0
Get familiar with setting conditions for your questions. I only have the German LimeSurvey installed so I'm not quite sure about the vocabulary.

You can set conditions for every question (the arrow that splits up into two heads).

Then you have to select the language code in the tokens menu. Must equal "de" for German and "en" for English.
L'administrateur a désactivé l'accès en écriture pour le public.

Can you use the survey language as a condition. il y a 4 mois 3 semaines #101926

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 3813
  • Remerciements reçus 683
  • Karma: 328
You can use the {SURVEYLANGUAGE} variable in relevance equations.

So, the relevance equations would be:
SURVEYLANGUAGE == "en"
SURVEYLANGUAGE == "de"
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.

Can you use the survey language as a condition. il y a 4 mois 3 semaines #101929

  • Ben_V
  • Portrait de Ben_V
  • Hors ligne
  • Platinum Lime
  • Messages : 933
  • Remerciements reçus 193
  • Karma: 62
Hello Tony,


Is {SURVEYLANGUAGE} an existing keyword or do you mean {LANG} ?
:unsure:
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
L'administrateur a désactivé l'accès en écriture pour le public.

Can you use the survey language as a condition. il y a 4 mois 3 semaines #101931

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 3813
  • Remerciements reçus 683
  • Karma: 328
Hi Ben,

It is an existing keyword, most commonly used in startpage.pstpl to add a class to the <body> element.

Of course, when using it in a relevance equation, you omit the curly braces.
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.

Can you use the survey language as a condition. il y a 4 mois 3 semaines #101932

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 3813
  • Remerciements reçus 683
  • Karma: 328
Having said that, a quick look at replacements_helper.php indicates that {LANG}, {SURVEYLANGAGE} and {SURVEYLANGUAGE} should all return the same thing.
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: jonsen

Can you use the survey language as a condition. il y a 4 mois 3 semaines #101934

  • Ben_V
  • Portrait de Ben_V
  • Hors ligne
  • Platinum Lime
  • Messages : 933
  • Remerciements reçus 193
  • Karma: 62
Thank you Tony...
It's more clear for me know and I'll have a look very soon at replacements_helper.php's content for more details...

Note: Consider that it's not an easy job to tell you that you may be wrong :cheer:
.
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
L'administrateur a désactivé l'accès en écriture pour le public.

Can you use the survey language as a condition. il y a 4 mois 3 semaines #101943

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 3813
  • Remerciements reçus 683
  • Karma: 328
Consider that it's not an easy job to tell you that you may be wrong
Oh, I'm wrong often enough!

Besides, this time we are both right :)
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.
Dernière édition: il y a 4 mois 3 semaines par tpartner.
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.142 secondes
Donation Image