- Posts: 5
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
8 months 2 weeks ago #245652
by transitionsreussies
How to Display Conditional Y/N Questions Under Selected Multiple-Choice Options was created 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
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
8 months 2 weeks ago #245665
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic How to Display Conditional Y/N Questions Under Selected Multiple-Choice Options
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.
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12942
- Thank you received: 3979
8 months 2 weeks ago - 8 months 2 weeks ago #245670
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic How to Display Conditional Y/N Questions Under Selected Multiple-Choice Options
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
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
8 months 2 weeks ago #245675
by transitionsreussies
Replied by transitionsreussies on topic How to Display Conditional Y/N Questions Under Selected Multiple-Choice Options
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,
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,
Attachments:
Please Log in to join the conversation.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12942
- Thank you received: 3979
8 months 2 weeks ago #245676
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic How to Display Conditional Y/N Questions Under Selected Multiple-Choice Options
Please, neither lsq nor lsg exports.
Only lss
Only lss
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12942
- Thank you received: 3979
8 months 2 weeks ago #245677
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic How to Display Conditional Y/N Questions Under Selected Multiple-Choice Options
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
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.
Joffm
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
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.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- transitionsreussies
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
8 months 1 week ago #245809
by transitionsreussies
Replied by transitionsreussies on topic How to Display Conditional Y/N Questions Under Selected Multiple-Choice Options
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!
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.