- Posts: 6
- 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.
triggerEmRelevance(); jQuery(document).off('pjax:scriptcomplete.mainBottom').on('ready pjax:scriptcomplete.mainBottom', function() { activateActionLink(); activateConfirmButton();
triggerEmRelevance(); jQuery(document).off('pjax:scriptcomplete.mainBottom').on('ready pjax:scriptcomplete.mainBottom', function() { <script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ // Identify this question var thisQuestion = $('#question2255'); var thisList = $('li.answer-item:eq(0)', thisQuestion).closest('ul'); // Build an array of sub-question labels var optionsArr = []; $('li.answer-item', thisQuestion).each(function(i) { optionsArr.push($.trim($('label:eq(0)', this).text())); }); // Sort the array optionsArr.sort(); // Reposition the sub-questions $(optionsArr).each(function(i) { var thisVal = this; $('li.answer-item', thisQuestion).filter(function() { return $.trim($('label:eq(0)', this).text()) == thisVal; }).appendTo(thisList); }); }); </script> activateActionLink(); activateConfirmButton();
Dafür sind doch die beiden Sprachen da, dass es auf Deutsch heißt "Äquatorialguinea" und auf Englisch "Equatorial Guinea"<row>
<id><![CDATA[23776]]></id>
<aid><![CDATA[11888]]></aid>
<answer><![CDATA[Equatorial Guinea / Äquatorialguinea]]></answer>
<language><![CDATA[de]]></language>
</row>
<row>
<id><![CDATA[23775]]></id>
<aid><![CDATA[11888]]></aid>
<answer><![CDATA[Equatorial Guinea / Äquatorialguinea]]></answer>
<language><![CDATA[en]]></language>
</row>
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Gibt es dazu ein Bugticket? Das ist auch so eine Basisfunktion, die man erwarten würde.Dass die alphabetische Sortierung bei mehrsprachigen Umfragen nicht funktioniert, ist leider bekannt.
Wurde hier schon vor längerer Zeit einmal diskutiert.
Please Log in to join the conversation.
Please Log in to join the conversation.
2. Meiner Ansicht nach das Beste bei solchen Fragen, ist ein "autocomplete".Wobei ich auch noch frage: Glaubst Du, es werden Teilnehmer aus Kiribati, dem Südsudan oder Guayana in erwähnenswerter Anzahl antworten?
Ist es für die Analyse von Wichtigkeit, ob jemand in Papua-Neuguinea oder Timor lebt?
Soll heißen, Du hättest Dich wohl auf die Hauptländer beschränken können, mit zusätzlichem "Sonstigen".
Ob man dies dann noch angeben lässt? Gut, kann man machen.
ist natürlich etwas gewagt.in meine Frage vom Typ Liste (Klappbox) zu integrieren.
b. Hast Du das Recht, javascript einzusetzen?In den Fragetext (im Quellcode-Modus) wird dieser javascript-Code eingefügt
Please Log in to join the conversation.
<link href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet" /> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('#question{QID} input[type="text"]').autocomplete({ minLength: 1, source: ["Adalbert Ameise", "Berta Biber", "Carlo Chinchilla", "Doris Dachs", "Ernst Eidechse", "Florian Flamingo", "Gabriele Gnu", "Horst Habicht“] }); }); </script>
Please Log in to join the conversation.
Please Log in to join the conversation.