Welcome to the LimeSurvey Community Forum

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

Multiple Choice Question hidden subquestions

  • Patriciaaaa
  • Patriciaaaa's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #219082 by Patriciaaaa
Hello,
I have a multiple choice question (Q1) in my survey, asking the respondents to tick all the relevant bullets (SQ001-SQ00x) with measures they are familiar with. Now I want to have an additional question (Q2), where respondents should name characteristics (opportunities and burdens) of each of the measures they are familiar with (and therefore ticked above). So the question Q2 should include all the bullets from Q1 which are ticked. How do I implement such an hidden subquestion?
In pseudocode it would look like: "{if(Q1_SQ001==0) then hide}". How would the code look like for limesurvey? And am I supposed to write the code in the fields "relevance-equation"? Or where am I supposed to write it?
I would appreciate any help!
Thanks a lot!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #219083 by tpartner
Replied by tpartner on topic Multiple Choice Question hidden subquestions

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: Patriciaaaa
The topic has been locked.
  • Patriciaaaa
  • Patriciaaaa's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #219086 by Patriciaaaa
Replied by Patriciaaaa on topic Multiple Choice Question hidden subquestions
Thank you! Is it possible to also include an "Other"-option? And in case "other" is ticked as well, can I include the answer from the "other"-option in my array?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #219091 by Joffm
Of course,
see here
[url] www.limesurvey.org/manual/ExpressionScri...code_variable_naming [/url]
Or you activate the survey and in the answer table you see how the QCodes of your questions look like.

So in your second question you enter this "other" row to your subquestions
 

Result:
   



Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu, Patriciaaaa
The topic has been locked.
  • Patriciaaaa
  • Patriciaaaa's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #219096 by Patriciaaaa
Replied by Patriciaaaa on topic Multiple Choice Question hidden subquestions
Thank you!
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 years 5 months ago #219215 by DenisChenu
Replied by DenisChenu on topic Multiple Choice Question hidden subquestions

So in your second question you enter this "other" row to your subquestions

Joffm
 
I think this must be added in a Test survey. Because it's really a great feature, but i'm not sure all dev know it ;)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose