Check out the LimeSurvey source code on GitHub!

determining the language version

2 years 10 months ago #107854 by jma6610
I'm at a university that is hosting Lime v.1.91 - so it doesn't have Expression Manager.

I'm running an anonymous survey and for those, you can't use tokens in the conditions.

I'm trying to specify a condition where a question is presented if a prior question was answered in a given way and if the language version currently being used was English. This would be easy if I could base the condition on the language token, but again, Lime doesn't permit doing this with an anonymous survey.

Is there some way to do this? I thought perhaps through the use of regular expressions in some way?


Please Log in to join the conversation.

2 years 10 months ago #107855 by Ben_V

Maybe you can hide your conditionnal question, using javascript only in the source of unwanted language(s) question text.

Something like (/!\ Replace "123" by your correct question code) :
<script type="text/javascript">

Probably you've to set this question not mandatory.


EM Variables => | EM Roadmap =>
Last Releases => 2.6x.x | 2.06/2.6.x =>
Demo Surveys => (already included in /docs/demosurveys)

Please Log in to join the conversation.

2 years 9 months ago #107886 by tpartner
You may be able to use the {LANG} placeholder to load a hidden equation question and/or set relevance. (not sure if it works if the language is switched mid-survey)


Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form