Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Hide subquestion based on survey language

More
3 years 5 months ago #225963 by Jmantysalo
I was asked to hide a subquestion in a Multiple choice -type subquestion in a multilanguage survey when the language is Czech. It should be easy, condition LANG != 'cs', but there is a bug: bugs.limesurvey.org/view.php?id=17934 . Any idea about workaround? I was thinking that something like $("#...").style("display", "none") would work, but did not get it to work.

We are using version 5.2.14 in our own server. Theme is based on Fruity.
 

Please Log in to join the conversation.

More
3 years 5 months ago #225966 by Joffm
Hi,

Any idea about workaround?

If you need something urgently: 
Prepend by a hidden question of type equation (QLang) with only {LANG}
Now you set the subquestion relevance to: QLang=='fi'
Works even if the respondent changes the language in the "food" question.
 

File Attachment:

File Name: limesurvey... (2).lss
File Size:27.71 KB

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu, holch

Please Log in to join the conversation.

More
3 years 5 months ago #225967 by Jmantysalo

Prepend by a hidden question of type equation (QLang) with only {LANG}
Now you set the subquestion relevance to: QLang=='fi'
That was simple! Thanks.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose