Welcome to the LimeSurvey Community Forum

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

Search Results (Searched for: multiple)

  • holch
  • holch's Avatar
28 Mar 2024 16:30
Do a search on the forum, this has been explained various times, most probably by tpartner, Joffm and Denis multiple times.
  • rajkumar_dms
  • rajkumar_dms's Avatar
28 Mar 2024 14:50
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.4
Own server or LimeSurvey hosting:
Survey theme/template:
==================
How to count the number selected answer in the mutiple choice questions is there is any function for this
  • phylll
  • phylll's Avatar
28 Mar 2024 14:03
LimeSurvey version: LimeSurvey Cloud Version 6.4.12, hosted by LimeSurvey, using the standard Fruity TwentyThree theme.
==================

Dear experts,

The closest I was able to find in the forums is this 3-years-old thread with very useful input by Joffm:  forums.limesurvey.org/forum/can-i-do-thi...ltiple-choice#209614

Basically, I've built a survey that first asks a multiple choice question with checkmarks (completely open, respondents can select between zero options and every available option) and then they get shown one question group per selected option, or none at all if they selected no options at all. Works fine.

As an additional feature, I've added respondent-specific defaults to the multiple choice question. So, the participant table holds extra information in attributes, and based on those attributes, some of the checkmarked subquestions in the multiple choice question "rcptSlctr" get automatically checked by default. Works fine, as well.

I've built this as a "survey template" not in the LimeSurvey sense but as an incomplete survey that I export as an LSS file, modify through a Python script to generate all these repetitive question groups that would be tedious and error-prone to build per hand every time, and reimport the new LSS into LimeSurvey. Again, works fine in most ways, and LimeSurvey's logic checks run fine.

Except that now, *deselecting* some of these defaults gets ignored *most of the time*. I am able to select additional question groups in my initial multiple choice question, and deselect others that were defaults, but then I still usually get a selection of question groups to answer that tends to include all the choices I tampered with, but not all (so the group relevance checks/conditions do work wherever I had not touched the checkboxes on the multiple choice question page).

Is this sufficiently clear or should I make screenshots? I've attached the LSS file I'm using. The problem tends to appear more often, if not only (no longer sure after lots of testing) for slightly larger number of choices and question groups than those 3. In my "production version", I have 23 entries/question groups, and there is happens all the time. If necessary, I can create an anonymized LSS with 23 entries, but I wanted to first give it a try and see if there is some obvious mistake I've made. (It's an internal staff feedback tool in my organization, so I need to anonymize everything before I post the LSS.)

Thank you very much for your support! 

File Attachment:

File Name: limesurvey...9999.lss
File Size:57 KB
  • Joffm
  • Joffm's Avatar
28 Mar 2024 13:54
Hi,
for the the first "multiple" -> "single" you use simple array filter
for the the second you have to insert a hidden multiple (HM), preset it with an equation and use as array filter for Q3

Like this
{HM_1=if(Q1_1=="Y" and Q2!=1,"Y","")}
{HM_2=if(Q1_2=="Y" and Q2!=2,"Y","")}
{HM_3=if(Q1_3=="Y" and Q2!=3,"Y","")}
{HM_4=if(Q1_4=="Y" and Q2!=4,"Y","")}


Only a short answer.
This procedure is explained very many times here.

Joffm
  • Help123
  • Help123's Avatar
27 Mar 2024 09:41
Please help me to design my Survey was created by Help123
Hello all I have a question regarding limesurvey and I am a bit desperate. Maybe someone of you might help me. So first I read that there is no Loop function in Limesurvey, that complicates things a lot because I want to ask many questions to multiple pictures. But it's only the picture that changes and it's the same questions, so a Loop would have been very useful.

But since I didn't saw a solution for that I have anohre problem. I have 5 blocks with 80 pictures and per picture I have 3 questions. I want to randomize the order of the blocks shown and also the 80 pictures with the 3 questions in these 5 blocks. How would u do this the easiest way possible? Would you create per picture a group of question in limesurvey or would you assine a group of question a block with the 80 pictures (with 3 questions per picture). Is there any way I could fusion different questions, for example matrix and another type of question?

I hope it was understandable and I would be very glad for your support.
  • Irmiii
  • Irmiii's Avatar
26 Mar 2024 11:23
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Community Edition   Version 6.3.4+231108 
Own server or LimeSurvey hosting: server
Survey theme/template: Fruity ( fruity )
==================
Hi, I need to take the selected answers from a multiple choice question to be the answer options of the next question. So if i have a multiple choice question with codes 1,2,3,4,5 and i select only 2&4 when filling the survey, i need only 2&4 to be the next questions answer options. So whatever i select in the first question should be shown as answer in the next one. Is it possible? 
Thanks
  • DenisChenu
  • DenisChenu's Avatar
25 Mar 2024 16:09
Replied by DenisChenu on topic trop de sous-questions
Non,

Pas de raison.

Et en choix multiples ? Tableaux etc ?
  • tpartner
  • tpartner's Avatar
25 Mar 2024 13:42
Use an array-numbers-text-inputs question type.

- manual.limesurvey.org/Question_type_-_Ar...ts_.28input_boxes.29
  • rbnbchr
  • rbnbchr's Avatar
25 Mar 2024 13:23
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 3.17.1+190408
Own server or LimeSurvey hosting:
Survey theme/template:
==================
Hello,

How do I need to modify my code to have both short text questions in the array? Additionally, is it possible to have numeric inputs instead of short free text QT and how do I do customize the following code?

Appreciate any input!

<script type="text/javascript" charset="utf-8">
  $(document).ready(function() {
 
    // Identify the questions
    var thisQuestion = $('#question'+{QID}+'');
    var nextQuestion1 = $(thisQuestion).nextAll('.text-short:eq(0)');
    var nextQuestions = $(nextQuestion1);
 
    var nextLength = nextQuestions.length;
    var sqLength = ('tr.answers-list', thisQuestion).length;
 
    // Hide the short-text questions
    $(nextQuestions).hide();
 
    // Move the hidden text inputs into the array
    for (i = 0; i < nextLength; i++) {
      var workingIndex = (sqLength - 1) - (nextLength - i);
      var nextQ = nextQuestions;
      $('th.answertext:eq('+workingIndex+')', thisQuestion).append($('input[type="text"]', nextQ)).closest('tr').addClass('otherRow');
    }
 
    // Some styling...
    $('input[type="text"]', thisQuestion).css({
      'width': '100%'
    });
  });
</script>
  • Joffm
  • Joffm's Avatar
25 Mar 2024 12:16
Replied by Joffm on topic Insertar valor en el campo de texto
Uses una pregunta "multiple textos cortos"
Tienes que añadir al script
Code:
         $('#question{QID} input[type="text"]:eq(0)').val(latitude);
          $('#question{QID} input[type="text"]:eq(1)').val(longitude);
          $('#question{QID} input[type="text"]:eq(2)').val(locationName);
          $('#question{QID} input[type="text"]:eq(3)').val(country);
          $('#question{QID} input[type="text"]:eq(4)').val(city);
          $('#question{QID} input[type="text"]:eq(5)').val(road);
 



Puedes eliminar la parte para mostrarla como texto.

Joffm
  • Joffm
  • Joffm's Avatar
22 Mar 2024 18:28
Da hatte ich also Recht,
hier ist der Thread
[url] forums.limesurvey.org/forum/design-issue...d-in-multiple-choice [/url]

Und da kommt die simple Erklärung von @Denis

There are no DB colun for other except the inpyt:text : intended behaviour

Wenn es keine Datenbankspalte gibt, kann es nicht funktionieren.
Ist immer ein guter Ratschlag:
Umfrage aktivieren, evtl. einige wohl definierte Daten eingeben, Antworttabelle anschauen




Entweder wird ein "Y" eingetragen, und bei "Sonstige" nur der Text.

Joffm

 
  • tpartner
  • tpartner's Avatar
21 Mar 2024 15:48
If you want to apply this to multiple questions...

1) Assign those questions a CSS class "inserted-spacer-question".

2) Extend your survey theme.

3) Add this to the custom.js file:

Code:
$(document).on('ready pjax:scriptcomplete',function(){
 
    $('.array-flexible-row.inserted-spacer-question').each(function(e) {
 
        // Identify some elements
        var thisQuestion = $(this);
        var thisTable = $('table.subquestion-list', thisQuestion);
 
        // Adjust column widths
        var spacerWidthPercent = 2;
        var labelWidth = ($('col:first', thisTable).width()/$('colgroup:first', thisTable).width())*100;
        var answerWidth = (100-labelWidth-spacerWidthPercent)/$('col:gt(0)', thisTable).length;
        $('col:gt(0)', thisTable).width(answerWidth+'%');
 
        // Insert some elements
        $('col:last', thisTable).before('<col class="inserted-spacer">');
        $('thead th:last-child', thisTable).before('<th class="inserted-spacer" />');
        $('tbody td.answer-item:last-child', thisTable).before('<td class="inserted-spacer" />');
 
    });
 
});

4) Add this to the custom.css file:

Code:
@media only screen and (max-width: 768px) {
 
    .inserted-spacer-question tbody td.inserted-spacer {
        height: 20px;
        min-height: 0;
        padding:  0;
    }
}
  • StabLab_DigitalThreats
  • StabLab_DigitalThreats's Avatar
21 Mar 2024 14:57
Minimum answers within question group was created by StabLab_DigitalThreats
Your LimeSurvey version: LimeSurvey Cloud Version 6.4.12
Own server or LimeSurvey hosting: Limesurvey hosting 
Survey theme/template: fruity_twentythree
==================
Hello,

I have a question group containg 21 "Multiple short text (Input on demand)" questions (each of these set to min 2 to max 4 answers). Participants should answer at least 10 of the questions (giving 2-4 answers for each) within the group before they can continue the survey,
How would I do that? I've dug around the forum and manual but couldn't find anything explaining how to do this. 

Thank you! 
 
  • holch
  • holch's Avatar
18 Mar 2024 15:59
Hmmm, I think this is referring to the multiple answer quection type, right?

Have a look how this is stored in the database. If someone ticks the check box, it gets a "Y". If it is not ticked, it is empty. So actually, there is no "N" anywhere. No and N/A is basically the same, because the answer option/ subquestion has been either marked ("Y") or not (empty).

Or are we really talking about the "yes/no" question type (that I never use).
  • Joffm
  • Joffm's Avatar
18 Mar 2024 15:39

this also for single choice for multiple choice what can you do for the same

What?
No matter if single or multiple.
y-axis: you use subquestion relevance
x-axis: the plugin.

Joffm
Displaying 121 - 135 out of 748 results.

Lime-years ahead

Online-surveys for every purse and purpose