- Posts: 73
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Ist es etwas anderes? Oder hat es noch mit der zufälligen Reihenfolge zu tun?Jetzt ist mir etwas anderes aufgefallen.
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ // The number of answers to be fixed at the end of the list var fixedAnswers = 1; // Set this to "true" if you want "Other" to be fixed in the last position var otherFixed = false; // Identify this question var qID = {QID}; // Find the number of answers var ansCount = $('#question'+qID+' .answer-item').length; if($('#question'+qID+' input[type="text"]').length > 0) { ansCount = ansCount -1 } console.log(ansCount); // Place the last n answers created at the end of the list var fixedIndex = fixedAnswers - 1; for (var i=0; i<fixedAnswers; i++) { var answer = $('input[id^="answer"][id$="X'+qID+(ansCount-fixedIndex)+'"]'); var answerItem = $(answer).closest('.answer-item'); var answersList = $(answer).closest('ul'); $(answersList).append(answerItem); fixedIndex--; } // Handle "Other" if(otherFixed == true && $('#question'+qID+' input[type="text"]').length > 0) { var otherAnswer = $('#question'+qID+' input[type="text"]'); var otherAnswerItem = $(otherAnswer ).closest('.answer-item'); var otherAnswersList = $(otherAnswer ).closest('ul'); $(otherAnswersList).append(otherAnswerItem); } }); </script>
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ alert("Hallo, hier ist javascript"); }); </script>
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Da gibt es nicht viel zu kennen. Man geht auf bugs.limsurvey.org und füllt das Formular aus. Ich denke es ist durchaus sinnvoll, wenn die Community da mitmacht. Das sind 5min. Wenn wir für jeden Bug der im Forum auftaucht einen Bug-Report machen, kommen wir nicht mehr zum Antworten in Forum.Würdet ihr den bug report bzgl. exclusive option machen, ihr kennt euch da viel besser aus
Please Log in to join the conversation.
Please Log in to join the conversation.
Ja, der Editor hier bringt einen auch oft zur Weißglut.if(otherFixed == true &&
Please Log in to join the conversation.