Can you use the survey language as a condition.

Plus d'informations
il y a 3 ans 8 mois - il y a 3 ans 8 mois #101725 par Hendrik01
Hendrik01 a créé le sujet : Can you use the survey language as a condition.
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 3 ans 8 mois par Hendrik01. Raison: Spelling error

Connexion pour participer à la conversation.

Plus d'informations
il y a 3 ans 8 mois #101924 par lgarzmann
lgarzmann a répondu au sujet : Can you use the survey language as a condition.
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.

Connexion pour participer à la conversation.

Plus d'informations
il y a 3 ans 8 mois #101926 par tpartner
tpartner a répondu au sujet : Can you use the survey language as a condition.
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.

Connexion pour participer à la conversation.

Plus d'informations
il y a 3 ans 8 mois #101929 par Ben_V
Ben_V a répondu au sujet : Can you use the survey language as a condition.
Hello Tony,


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

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)

Connexion pour participer à la conversation.

Plus d'informations
il y a 3 ans 8 mois #101931 par tpartner
tpartner a répondu au sujet : Can you use the survey language as a condition.
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.

Connexion pour participer à la conversation.

Plus d'informations
il y a 3 ans 8 mois #101932 par tpartner
tpartner a répondu au sujet : Can you use the survey language as a condition.
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.
Les utilisateur(s) suivant ont remercié: jonsen

Connexion pour participer à la conversation.

Plus d'informations
il y a 3 ans 8 mois #101934 par Ben_V
Ben_V a répondu au sujet : Can you use the survey language as a condition.
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

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)

Connexion pour participer à la conversation.

Plus d'informations
il y a 3 ans 8 mois - il y a 3 ans 8 mois #101943 par tpartner
tpartner a répondu au sujet : Can you use the survey language as a condition.

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.
Dernière édition: il y a 3 ans 8 mois par tpartner.

Connexion pour participer à la conversation.

Avez-vous déjà participé à notre enquête auprès des clients?

Ne manquez pas votre chance à des prix incroyables.

S'il vous plaît cliquez ici pour participer:

Commencer

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant