Welcome to the LimeSurvey Community Forum

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

Combining two types of responses in the same question

  • Nachiappan Chockalingam
  • Nachiappan Chockalingam's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 5 days ago #260868 by Nachiappan Chockalingam
Combining two types of responses in the same question was created by Nachiappan Chockalingam
Please help us help you and fill where relevant:
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen] 6.5.3
Own server or LimeSurvey hosting: LimeSurvey hosting
Survey theme/template:
==================
I am trying to create a question with two types of answers ( boot strap plus text input). I am struggling to design it (I have attached the copy of the question here). Can someone help?

thanks in advance. 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 5 days ago #260875 by Joffm
Hi,
do you talk about question 5?
Use the "Other" option.

Joffm
 

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

Please Log in to join the conversation.

  • Nachiappan Chockalingam
  • Nachiappan Chockalingam's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 5 days ago #260893 by Nachiappan Chockalingam
Replied by Nachiappan Chockalingam on topic Combining two types of responses in the same question
Thanks for your reply. Yes, that's what I tried. I used "single choice" bootstrap buttons. I am struggling to edit the options for "other"

Please Log in to join the conversation.

  • Nachiappan Chockalingam
  • Nachiappan Chockalingam's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 5 days ago #260898 by Nachiappan Chockalingam
Replied by Nachiappan Chockalingam on topic Combining two types of responses in the same question
..to add: if the response is 2 stays, I would then like to ask how many nights that they stayed in the hospital for each of those stays.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 5 days ago #260921 by Joffm
Please send the lss export of the relevant questions 

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

Please Log in to join the conversation.

  • Nachiappan Chockalingam
  • Nachiappan Chockalingam's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 5 days ago #260928 by Nachiappan Chockalingam
Replied by Nachiappan Chockalingam on topic Combining two types of responses in the same question
here's the .lss export. thanks for your continued help. 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 5 days ago #260956 by Joffm
What do you mean by "options for 'others'"?
The text?
This you set in "Display".
Or the length of the field?
Investigate with the webdevelopment tool of your browser to find the affected classes (F12)

You can do this with some css
 
 
Code:
<style type="text/css">
@media (min-width: 769px) {
  .other-text-item { 
     width: 17%; 
     margin-left:83%; 
  }
}
</style>


On the other side:
If you allow all numbers - more or less- I think it to be better you use a simple "numerical input" or a "multiple numerical input"
 

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

Please Log in to join the conversation.

  • Nachiappan Chockalingam
  • Nachiappan Chockalingam's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 5 days ago #260957 by Nachiappan Chockalingam
Replied by Nachiappan Chockalingam on topic Combining two types of responses in the same question
Yeah got that. For example - You have modified it to show "how many" - that's great. For that question, if someone responds "6"; then I want to ask them - for each stay - how many nights they spent at the hospital. Can we ask the question as shown in the paper survey (my first attachment)? or should we add that as a separate question?

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 5 days ago #260964 by Joffm
Hi,
1. An online survey is different from a paper-pencil-survey.
Feel free to read this
 

File Attachment:

File Name: surveyfrie...4-22.zip
File Size:977 KB


2. Of course you can do that.
Use the appropiate question type (multiple numerical input)

BUT: You used the wrong type of "bootstrap-buttons"
Use the "single punch" button!
   


And with this correct button the css is like this
Code:
<style type="text/css">
@media (min-width: 769px) {
  .myOther .answer-item { 
      width: 17%; 
      margin-left:83%; 
  }
}
</style>

You see that I used a custom css class "myOther".
This is to not affect other elements on the same page.

Here the survey (only group(s) MODRum and only the first filled.
 

File Attachment:

File Name: limesurvey...7155.lss
File Size:182 KB

The rest - up to you.

Joffm





 

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

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 4 days ago #261110 by holch
I agree with Joffm, the correct approach would be a number question. The paper and pencil approach is not necessary online, it is not beneficial in any way.

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

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose