Welcome to the LimeSurvey Community Forum

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

How to Display Conditional Y/N Questions Under Selected Multiple-Choice Options

  • transitionsreussies
  • transitionsreussies's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 months 2 weeks ago #245652 by transitionsreussies
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.6.31
Own server or LimeSurvey hosting: LimeSurvey hosting
Survey theme/template: default
==================Hello LimeSurvey community,I am currently working on a survey and trying to achieve a specific functionality. I have a multiple-choice question where respondents are asked to select various services they received to address a specific need, let's call it "Need X."For each service selected, I want to ask a Yes/No question to determine if the respondent found that service helpful in addressing "Need X." I want these Yes/No questions to appear immediately below the corresponding service option that was selected in the multiple-choice question.I've attempted to set up the survey using the available logic options, but I'm facing challenges in getting the Yes/No questions to appear directly below each selected option. Currently, the Yes/No questions are displayed after all the multiple-choice options.Could you please provide guidance on how I can achieve this setup using LimeSurvey? Specifically, how can I conditionally display Yes/No questions right below each selected multiple-choice option?Thank you in advance for your assistance!Best regards, David

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 months 2 weeks ago #245665 by tpartner
Use several multiple-choice questions, each followed by a Yes/No question.

You can use CSS to hide the question text in the multiple-choice questions and to remove spacing between paired questions.

Cheers,
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.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 months 2 weeks ago - 8 months 2 weeks ago #245670 by Joffm
As @tpartner.
You CAN do that.
With the css classes "no-question" and "no-bottom" and some more css to minimize the height it may look like this
 

But better you consider a different question type.
1. An array(text) with the second column depending on first column
 

2. An array (dual scale) with drop-down layout and again the second scale depending on first scale
 

3. A two-level multiple question
 

Just some examples.

Now you may decide and afterwards send a lss export  with a prototype of this/these question/s.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 8 months 2 weeks ago by Joffm.

Please Log in to join the conversation.

  • transitionsreussies
  • transitionsreussies's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 months 2 weeks ago #245675 by transitionsreussies
Thank you @tpartner for you answer! @Joffm, you are right about the array design, it fits best what I need to achieve with this set of subquestions.

I tried to reproduce your second example (array dual scale) but I can't find how to add a condition to the second answer scale like you did (it would be possible to answer to the second scale only if "Oui" is the answer in the first scale). I found an old post but the version of the .lss file is too old for my current version : [url] forums.limesurvey.org/forum/installation...-dual-scale-question [/url]

Also, I would like to add a default answer to the first scale ("Non" as default) and and the second scale ("Ne s'applique pas" as default), but don't know how to do it. Sorry about those simple questions :)

Here is the file I actually use :

Thank you,

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 months 2 weeks ago #245676 by Joffm
Please, neither lsq nor lsg exports.
Only lss

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

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 months 2 weeks ago #245677 by Joffm
The reason why we ask for only lss exports is:
lsq and lsg exports are language sensitive.
You can't import them into a survey with a different base language.
So, to help you, we have to
  • guess the base language
  • create a new survey
  • create a new group
  • and finally import your export
Furthermore these exports don't contain the survey wide settings which may be very important.
So, please help us to help you. We all are volunteers who try to help in our spare time.

Okay, I created something with the dual array.
 

File Attachment:

File Name: limesurvey...1852.lss
File Size:36 KB


Joffm


 

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

Please Log in to join the conversation.

  • transitionsreussies
  • transitionsreussies's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 months 1 week ago #245809 by transitionsreussies
Hello @Joffm,

I I wasn't aware of the difference between .lsq and .lss files. Next time I will send the correct format file. I know your time and knowledge are very valuable for the community. It wasn't my intention to waste your time. Please accept my apologies.

I tried the .lss you sent me and it works perfectly. It helps me understand how to elaborate the next questions in my survey. Thank you, sir!

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose