Welcome to the LimeSurvey Community Forum

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

Show only answer option and those before based on previous answer selected

  • JasonZA
  • JasonZA's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 day ago #256794 by JasonZA
Please help us help you and fill where relevant:
Your LimeSurvey version: url=https://ms2.bmi.co.za/index.php?r=questionAdministration/view&surveyid=333258&gid=41&qid=761#modalSystemInformation]5.6.36+230830[/url
Own server
Survey theme/template: shop_tfr-cfo6hh
==================

Good day. I have a List (radio) question named Q2 and it has the following answer options:

Q2:
  • Less than 3 months
  • 3 – 6 months
  • 7 – 12 months
  • 1 – 2 years
  • 3 – 5 years
  • 6 – 10 years 
  • More than 10 years
Q4 is also a List (radio) question and has the same answer options as Q2 but I only want the answer option, as well as those before it to be shown in Q4, e.g. if 3 - 6 months is chosen, then only Less that 3 months and 3 - 6 months must be shown in Q4.

Is this possible? Any assistance will be much appreciated.

Kind Regards,
Jason

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 months 1 day ago - 10 months 1 day ago #256799 by Joffm
Hi,
there is no condition on answer options.
Therefore you have to use the often described workaround.

.Create a (hidden) multiple question (HM)
Create a (hiddden) question of type equation (eqHM) where you preset the subquestions of the multiple question.
Use the multiple question as array filter of Q4.

Like:
{Q4_1="Y"}
{Q4_2=if(Q2>1,"Y","")}
{Q4_3=if(Q2>2,"Y","")}
...

Here I used numerical codes and answer options.

Better you send the lss export of these relevant questions.

Joffm


​​​​​​​

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 10 months 1 day ago by Joffm.

Please Log in to join the conversation.

  • JasonZA
  • JasonZA's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 day ago #256820 by JasonZA
Thanks a lot for your assistance, @Joffm.

I have attached the lss file as requested. It pertains to Q2 and Q5.

Kind Regards,
Jason

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 months 1 day ago #256833 by Joffm
 

File Attachment:

File Name: limesurvey...2-20.lss
File Size:68 KB


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • JasonZA
  • JasonZA's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 day ago #256858 by JasonZA
That works perfectly. I really appreciate your help @Joffm.

Many thanks ,
Jason

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose