Welcome to the LimeSurvey Community Forum

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

Hide subquestion based on survey language

  • Jmantysalo
  • Jmantysalo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
3 years 3 months ago #225963 by Jmantysalo
Hide subquestion based on survey language was created 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.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago #225966 by Joffm
Replied by Joffm on topic Hide subquestion based on survey language
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:28 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.

  • Jmantysalo
  • Jmantysalo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
3 years 3 months ago #225967 by Jmantysalo
Replied by Jmantysalo on topic Hide subquestion based on survey language

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