Welcome to the LimeSurvey Community Forum

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

Multiple choice with comments in two columns

  • ProjetLions
  • ProjetLions's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #206083 by ProjetLions
Hello, I created a "multiple choice with comments" question but I have a lot of subquestions so the page is very long and it is confusing...

I would like to add a second column, but unfortunately this option is only available for the "list (radio)" question...
I would like the question to look like this, if possible :

Have you ever suffered from these diseases? If yes, how many time in your life
(you can check more than one thing) :

1. Cancer _____ 4. Conjunctivitis _____
2. Allergies _____ 5. Stomach aches _____
3. Colds _____ 6. Flu _____
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 5 months ago #206092 by tpartner
Replied by tpartner on topic Multiple choice with comments in two columns
LimeSurvey version?

Can you attach a small sample survey (.lss file) containing only that question?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 5 months ago #206105 by holch
I don't think this is possible without a little Javascript hacking, probably.

However, to be honest, I would split this up into 2 questions anyway. The first a multipe choice question (I think you might be able to put these into columns) and then have a multiple numbers question for only those that have been chosen in the previous question (either via array filter) or via subquestion relevance.

I think it is a lot cleaner approach and they will only see the boxes for numbers where they said they had the diseas. Yes, it is an additional question, but actually you are already asking 2 questions in one with your approach anyway.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • ProjetLions
  • ProjetLions's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #206134 by ProjetLions
Replied by ProjetLions on topic Multiple choice with comments in two columns
Version 3.23.4! I don't know how to send a small sample of the survey...
The topic has been locked.
  • ProjetLions
  • ProjetLions's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #206135 by ProjetLions
Replied by ProjetLions on topic Multiple choice with comments in two columns
Okay! thank you Holch :-)
Do you know a Javascript equation that would work for what I want to do? I don't know how to write Javascript...
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 5 months ago - 3 years 5 months ago #206137 by tpartner
Replied by tpartner on topic Multiple choice with comments in two columns
Place the following CSS in the source of the question:

Code:
<style type="text/css">
 
  @media only screen and (min-width: 768px) {
    #question{QID} li.checkbox-text-item {
      float: left;
      width: 50%;
      margin-right: 0;
       margin-left: 0;
    }
                                
    #question{QID} .text-item {
      padding-right: 30px;
      padding-left: 0;
    }
  }
 
</style>

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 3 years 5 months ago by tpartner.
The following user(s) said Thank You: ProjetLions
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 5 months ago #206194 by holch

I don't know how to send a small sample of the survey...

Copy your survey, delete all unnecessary questions, export this shortened survey with only the relevant parts of you questionnaire to LSS and upload it here.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: ProjetLions
The topic has been locked.
  • ProjetLions
  • ProjetLions's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #206323 by ProjetLions
Replied by ProjetLions on topic Multiple choice with comments in two columns
Thank you so much!! That is exactly what I wanted, it works well :)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose