Welcome to the LimeSurvey Community Forum

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

Multiple choice dropdown

More
7 months 1 week ago #270073 by Minh1987
Hi.

I have 10 options. Among which, I want respondents to pick up three and mandatorily choose the respective dropdown list of 5 options.
I have read the following theme [url][/url]   github.com/tpartner/LimeSurvey-Multiple-Choice-Dropdown   
But I think the file is not available anymore. Could you please tell me how can I do?

Many thanks in advance.

Please Log in to join the conversation.

More
7 months 1 week ago #270076 by Minh1987
Replied by Minh1987 on topic Multiple choice dropdown
It is like..
"Please choose 3 products that you have used and tell us how much was your satisfaction with those products?"

Please Log in to join the conversation.

More
7 months 1 week ago - 7 months 1 week ago #270077 by Joffm
Replied by Joffm on topic Multiple choice dropdown
Hi,

But I think the file is not available anymore.

I do not see an issue.
Of course it is still available

The obstacle is: It is not compatible with version 6.x.

But you find the file for version 6.x. if you go tpartner's github homepage. Here you'll find it.
 

But now some remarks.
If there are only 10 options, a dropdown is really annoying for the respondent.
He has to click to open it, see which options are available, and again has to click to select the option.

If I see your scenario:
It should be sufficient to use a "multiple" question followed by an "array" to enter the satisfaction (here you use "array filter" to only display the selected products.
Or you use only one array with a last colum ("not applicanle / not used")
Or you use one "multiple with comment" question; in the comment the respondent enters the value of his satisfaction.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 7 months 1 week ago by Joffm.
The following user(s) said Thank You: DenisChenu, holch, tpartner

Please Log in to join the conversation.

More
7 months 1 week ago - 7 months 1 week ago #270116 by Minh1987
Replied by Minh1987 on topic Multiple choice dropdown
Thank you for your answer. 
Currently I am following your suggestion, using multiple choice with comments and respondents enter their answer in the comments.

Nevertheless, I am still trying to discover multiple choice with dropdown to use in the future. I have downloaded and installed the Multiple choice dropdown x6 already. I can see the option Multiple Choice Dropdown (Type: M) in the list. However, I did not see where to enter the dropdown list.
In this link they mentioned about question theme  github.com/tpartner/LimeSurvey-Multiple-Choice-Dropdown-3x
But I could not see it in my web Limesurvey
Could you please tell me what I can do? My version is  LimeSurvey Cloud   Version 6.13.0

Sincerely thanks.
Last edit: 7 months 1 week ago by Minh1987.

Please Log in to join the conversation.

More
7 months 1 week ago #270118 by Joffm
Replied by Joffm on topic Multiple choice dropdown
Did you follow the steps?
  1. Extract the download, compress (zip) the Multiple-Choice-Dropdown folder and import via the theme manager.
  2. Create a Multiple-Choice-Dropdown question, click Save.
  3. Create subquestions as required.
1. means, you only import the Multiple-Choice-Dropdown folder, not the LimeSurvey-Multiple-Choice-Dropdown-6x-main folder

I can see the option Multiple Choice Dropdown (Type: M) in the list.

Which list?
Do you see it here?
 

or here at the bottom?
 
Then you have to install it.

If everything is fine, you should see the new question theme here
 

2. & 3. Create a question of this type, enter the subquestions.
 

BTW: I do not understand why you still insist on the theme for version 3.x.
You ignored the questions at that appeared at the beginning, so the question: Which version do you really use?

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: tpartner

Please Log in to join the conversation.

More
3 days 20 hours ago - 3 days 19 hours ago #273198 by Horizen
Replied by Horizen on topic Multiple choice dropdown
Hi,
I'm trying to use either the plugin/theme option here or the script.
However, I can't make either work (I'm new to Limesurvey).

I downloaded the theme ( github.com/tpartner/LimeSurvey-Multiple-Choice-Dropdown-6x ), but after adding it to my theme manager, I can't install it. I get an "version error" message (I'm using Limesurvey Cloud 6.15.24). Does this work with the cloud version, or do I need the desktop one?
 

Considering the script, I'm not sure where to input it. I tried the "script" tab in the older question editor (I could not find it in the new editor), but I can't seem to make it do anything.
  
 

I'm using a script you provided another user ( forums.limesurvey.org/forum/design-issue...le-as-answer-options ):
Code:
<script type="text/javascript" charset="utf-8">
  $(document).on('ready pjax:scriptcomplete',function(){
    var thisQuestion = $('#question{QID}');
    // Add a question class
    thisQuestion.addClass('custom-array');
 
    // Column-specific classes
    $('table.subquestion-list tr', thisQuestion).each(function(i) {
      $('th, td', this).each(function(i) {
        $(this).addClass('column-'+i);
      });
    });
 
 
    // Insert selects
    $('.answer-item.answer_cell_X001', thisQuestion).addClass('with-select').append('<select class="inserted-select form-control list-question-select">\
  <option value="">...</option>\
  <option value="1">Option 1</option>\
  <option value="2">Option 2</option>\
  <option value="3">Option 3</option>\
</select>');
 
    // Listeners
    $('.inserted-select', thisQuestion).on('change', function(i) {
      if($(this).val() != '') {
        $(this).closest('.answer-item').find('input:text').val($('option:selected', this).val()).trigger('change');
      }
      else {
        $(this).closest('.answer-item').find('input:text').val('').trigger('change');
      }
    });
 
  // Returning to page
    $('.with-select input:text', thisQuestion).each(function(i) {
      var thisCell = $(this).closest('.answer-item');
      var inputText = $.trim($(this).val());
      $('select.inserted-select', thisCell).val(inputText);
    });
 
    // Clean-up styles
    $('select.inserted-select', thisQuestion).css({
      'max-width': '100%'
    });
    $('.with-select input:text', thisQuestion).css({
      'position': 'absolute',
      'left': '-9999em'
    });
  });
</script>

When using it in the script tab of my question, I see this error:
 

Any help would be much appreciated!
Last edit: 3 days 19 hours ago by Horizen.

Please Log in to join the conversation.

More
3 days 18 hours ago #273200 by Joffm
Replied by Joffm on topic Multiple choice dropdown
Hi,
1. The question theme
Yes, it is a question theme (not a survey theme) and it has to be installed here
 
But I do not see this tab in your screenshot. Maybe you don't have rights to do this.

2. If you use the script tab you must not surround the script by the tags <script>...</script>.
As is written here "This optional script field will be wrapped"
That's the only advantage of this tab. 

I could not find it in the new editor

It's a bit hidden.
If you click into the question text area, you see this small menu. The three dots lead to this dropdown

Better you use the "old" editor.

Joffm



 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: Horizen

Please Log in to join the conversation.

More
3 days 17 hours ago - 3 days 17 hours ago #273201 by Horizen
Replied by Horizen on topic Multiple choice dropdown
Thanks for your quick answer!

Indeed, it worked using the Question theme.
However, I realize this is not what I'm looking for as it can't be used in an array.

The code seem to do exactly what I want, which is to ask the user to evaluate certain criterias for multiple options (so, 2-3 columns of dropdown answers per line).

I removed the <script> tags, but I still get nothing when I try to preview my question (the fields are there, but not dropdown). I don't see what I'm missing... obviously...
I attached a LSS file. The question I'm working on is Q005.

Thank you!
Last edit: 3 days 17 hours ago by Horizen.

Please Log in to join the conversation.

More
3 days 16 hours ago - 3 days 16 hours ago #273202 by Joffm
Replied by Joffm on topic Multiple choice dropdown
Hi,
additionally you have to remove the
  $(document).on('ready pjax:scriptcomplete',function(){
and the last )};

Because I never use this tab I forgot about this.
I prefer to use either the question text or the help text.
Reason: Here I can insert css, too.

But, as far as I understand this question this is a typical example of an array dual scale.
Either as radio buttons
 
or as dropdown.
 


And why didn't you use an array in Q006
 
A dropdown with only a few options is really annoying.
The respondent has to click to open it and click again to select the answer option.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 days 16 hours ago by Joffm.
The following user(s) said Thank You: Horizen

Please Log in to join the conversation.

More
3 days 9 minutes ago #273206 by Horizen
Replied by Horizen on topic Multiple choice dropdown
Hi!
The real answer is probably that I'm still trying to figure out all the options in LimeSurvey.
However, I'm not using "simple" arrays because we want the participant to be able to add a comment on the same line. So I though about using Array(text), and I'm now deciding between a slider, a dropdown and a radio button.

Your suggestion worked perfectly, thank you!
I also didn't quite know where to use the code, so I instinctively went for the "script" tab, but I now understand that the code could have been used in the other two.

Thanks a lot for your help!

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose