Welcome to the LimeSurvey Community Forum

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

Is it possible to move the multiple-choice checkbox into the table

  • LISHANGQI
  • LISHANGQI's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 1 month ago #232280 by LISHANGQI
Please help us help you and fill where relevant: Your LimeSurvey version: 3.28Own server or LimeSurvey hosting: OwnSurvey theme/template:==================
Dear all, 

I'm designing a table to ask a multiple-choice question. Thanks to the previous posts, I've moved the choice radio into the cells, but they are single-choice question buttons.  Although I can set four dummy sub-questions and valid equations to make it work like a multiple-choice question, the problem is these buttons cannot be unchecked (must select an option of the subquestion once clicked). May I ask if it is possible to use the presentation of the checkbox?

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 1 month ago #232283 by Joffm
Hi,
please always provide a lss export of this/these relevant question(s).

So we see what you did to achieve this and it is easier for us to develop further to satisfy your wish.

Joffm

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

Please Log in to join the conversation.

  • LISHANGQI
  • LISHANGQI's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 1 month ago #232293 by LISHANGQI
Dear Joffm,

I've removed the irrelevant content and attached the lss file to this post.
 
In this table, I'd like to let respondents select one of the two DRT transport modes and select the segment(s) that they would like to use the selected DRT.  They can also select"stick to my reported mode(s)" or "Use DRT in another way", which means these two options should be exclusive. 

Please Log in to join the conversation.

More
2 years 1 month ago #232304 by jelo

I've removed the irrelevant content and attached the lss file to this post.
 
FYI: There is currently no LSS export attached.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 1 month ago - 2 years 1 month ago #232307 by Joffm

the problem is these buttons cannot be unchecked (must select an option of the subquestion once clicked)

If this is your only concern, why don't you add a column "None of these"?
As it was in the last years survey about "MaaS"


@jelo,
there is a lss attached.
But the attachments are only displayed after you click the "reply" button.

A new strange behaviour of the editor?

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 1 month ago by Joffm.

Please Log in to join the conversation.

  • LISHANGQI
  • LISHANGQI's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 1 month ago #232308 by LISHANGQI
Thanks for the suggestion. But what if the respondent first chooses Car-DRT for segments A and B, but then he changes his mind and only would like to use Car-DRT for segments A? In this situation, he can not uncheck the radio of segments B*Car-DRT.

@jelo Hi jelo, thanks for your attention, I'll upload it again.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 1 month ago - 2 years 1 month ago #232309 by Joffm

he can not uncheck the radio of segments B*Car-DRT.

Therefore I suggested the columnb "None of these".
Now he can select this in segment B (and "Car-DRT" is unchecked)

if the respondent first chooses Car-DRT for segments A and B

 

then he changes his mind and only would like to use Car-DRT for segments A? In this situation, he can not uncheck the radio of segments B*Car-DRT.

 

Rough example without styling.

Joffm


 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 1 month ago by Joffm.

Please Log in to join the conversation.

  • LISHANGQI
  • LISHANGQI's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 1 month ago #232313 by LISHANGQI
Yes seems this is the only solution, otherwise, I need to provide all the combinations as the options, then it will be a single-choice question.

Besides, may I ask why these radios are not horizontally in the middle? I've set the cell alignment to the middle but it seems they are always slightly to left.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 1 month ago - 2 years 1 month ago #232315 by Joffm
I did not check your styles and settings.
Did you investigate the page with the werbdevelopment-tool of your browser?

And to be honest,
I still do not know if a respondent shall be able to select an option in each segment or is the idea that the respondent only selects ONE option at all?
In this second case use only one subquestion with eight answer options and "move the radios" like this
Code:
    // Move the radios
 
        $('.question-text table:eq(0) tr:eq(2) td:eq(3)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(0) *', thisQuestion));
        $('.question-text table:eq(0) tr:eq(2) td:eq(4)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(1) *', thisQuestion));
 
       $('.question-text table:eq(0) tr:eq(3) td:eq(3)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(2) *', thisQuestion));
       $('.question-text table:eq(0) tr:eq(3) td:eq(4)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(3) *', thisQuestion));
 
        $('.question-text table:eq(0) tr:eq(4) td:eq(3)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(4) *', thisQuestion));
        $('.question-text table:eq(0) tr:eq(4) td:eq(4)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(5) *', thisQuestion));
 
        $('.question-text table:eq(0) tr:eq(5) td:eq(1)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(6) *', thisQuestion));
        $('.question-text table:eq(0) tr:eq(6) td:eq(1)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(7) *', thisQuestion));
      // Some classes for presentation
    $('.question-text table:eq(0) input:radio', thisQuestion).closest('td').addClass('answer-item radio-item text-center radio');
    $('.question-text table:eq(0) .radio-item label', thisQuestion).show();
 
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 1 month ago by Joffm.

Please Log in to join the conversation.

  • LISHANGQI
  • LISHANGQI's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 1 month ago #232316 by LISHANGQI
The idea is that respondents only select one option, and they can select to use it on the whole reported trip or part of the trip( one or two segment)

I checked the developer tool, it seems they are not relevant. 
 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 1 month ago - 2 years 1 month ago #232330 by Joffm
1.
Of course you find something.

If you have a look at the label
 

you will see that there is a left-margin of -20px
 

Remove it and the radios will be centered horizontally


2.

only select one option

This means, either Car-DRT or Van-DRT for the whole trip or parts?

Now I think you should redesign the question.
In my opinion this will be too difficult for a normal respondent to understand that he can't mix (one subtrip with van, main trip with car)

Make it easy: First ask for "Car" or "Van", (or none)
Then ask for the segments.

Always remember, it is an online survey, not paper-pencil.
Do not overload the screen, consider people who answer by smartphone

But, as usual: It's up to you. It is your survey.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 1 month ago by Joffm.

Please Log in to join the conversation.

  • LISHANGQI
  • LISHANGQI's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 1 month ago - 2 years 1 month ago #232333 by LISHANGQI
Oh..Thanks! I learned new knowledge from you.

I guess this is a certain template of the radio, which I cannot edit. But I can adjust it with some &nbsp. 

Thanks for your help again!
Last edit: 2 years 1 month ago by LISHANGQI.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose