- Posts: 51
- Thank you received: 1
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
- Topic Author
- Offline
- Senior Member
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
- Away
- LimeSurvey Community Team
- Posts: 12925
- Thank you received: 3977
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
- Topic Author
- Offline
- Senior Member
- Posts: 51
- Thank you received: 1
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.
- jelo
- Offline
- Platinum Member
- Posts: 5033
- Thank you received: 1257
FYI: There is currently no LSS export attached.I've removed the irrelevant content and attached the lss file to this post.
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
- Away
- LimeSurvey Community Team
- Posts: 12925
- Thank you received: 3977
If this is your only concern, why don't you add a column "None of these"?the problem is these buttons cannot be unchecked (must select an option of the subquestion once clicked)
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
Please Log in to join the conversation.
- LISHANGQI
- Topic Author
- Offline
- Senior Member
- Posts: 51
- Thank you received: 1
@jelo Hi jelo, thanks for your attention, I'll upload it again.
Please Log in to join the conversation.
- Joffm
- Away
- LimeSurvey Community Team
- Posts: 12925
- Thank you received: 3977
Therefore I suggested the columnb "None of these".he can not uncheck the radio of segments B*Car-DRT.
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
Please Log in to join the conversation.
- LISHANGQI
- Topic Author
- Offline
- Senior Member
- Posts: 51
- Thank you received: 1
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
- Away
- LimeSurvey Community Team
- Posts: 12925
- Thank you received: 3977
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
// 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
Please Log in to join the conversation.
- LISHANGQI
- Topic Author
- Offline
- Senior Member
- Posts: 51
- Thank you received: 1
Please Log in to join the conversation.
- Joffm
- Away
- LimeSurvey Community Team
- Posts: 12925
- Thank you received: 3977
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.
This means, either Car-DRT or Van-DRT for the whole trip or parts?only select one option
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
Please Log in to join the conversation.
- LISHANGQI
- Topic Author
- Offline
- Senior Member
- Posts: 51
- Thank you received: 1
Please Log in to join the conversation.