- Posts: 4
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Ja, das sind die Platzhalter bei SoSci.holch wrote: Aber ich vermute mal, es läuft aufs Piping hinaus.
Die Flexibilität von SoSci Survey in Bezug auf Kombinieren von Frageelementen bringt Limesurvey von Haus aus nicht mit.disfater wrote: Habt ihr dazu eine Idee? Geht das irgendwie mit LS?
<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 nextQuestion2 = $(thisQuestion).nextAll('.text-short:eq(1)'); var nextQuestion3 = $(thisQuestion).nextAll('.text-short:eq(2)'); var nextQuestions = $(nextQuestion1).add(nextQuestion2); var nextLength = nextQuestions.length; var sqLength = ('tr.answers-list', thisQuestion).length; // Hide the short-text question $(nextQuestions).hide(); // Move the hidden text inputs into the array $('th.answertext:eq('+1+')', thisQuestion).append($('input[type="text"]', nextQuestion1)).closest('tr').addClass('otherRow'); $('th.answertext:eq('+8+')', thisQuestion).append($('input[type="text"]', nextQuestion2)).closest('tr').addClass('otherRow'); // Some styling... $('input[type="text"]', thisQuestion).css({ 'width': '50%' }); }); </script>