- Posts: 25
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ // Identify this question and the next question var qID = '{QID}'; var thisQuestion = $('#question'+qID); var nextQuestion = $(thisQuestion).nextAll('.text-long:eq(0)'); // Move the next question $('??????').append(nextQuestion); }); </script>
// The "Other" sub-question code
var otherCode = 'SQ008';
// Move the next question
$('.answer-item[id$="X'+qID+otherCode+'"]', thisQuestion).append(nextQuestion);
<style type="text/css"> .answer-item .question-title-container, .text-long .questionvalidcontainer, .text-long .question-help-container { display: none; } .answer-item .answer-container { border: 0; } </style>
Genau so ist es; ich habe es zwar noch irgendwo installiert, merke aber, dass meine damals erlangten Fertigkeiten jetzt überlagert werden durch die Arbeit mit den neuen Versionen.Da wird es eng, hier noch erfahrene Nutzer zu finden, die das aktiv einsetzen.
<style type="text/css"> .answer-item .question-title-container { margin-left:20px; margin-right:20px; background-color:#ccc; padding-top:0; padding-bottom:0; color: red; } .text-long .questionvalidcontainer, .text-long .question-help-container { display: none; } .answer-item .answer-container { border: 0; padding-top:1em; } </style>
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ // The Slider sub-question code var otherCode = 'SQ001'; // Identify this question var qID = '{QID}'; var thisQuestion = $('#question'+qID); var nextQuestion = $(thisQuestion).nextAll('.text-long:eq(0)'); // Move the next question $('.answer-item[id$="X'+qID+otherCode+'"]', thisQuestion).append(nextQuestion); }); </script> <style type="text/css">.answer-item .question-title-container { margin-left:40px; margin-right:40px; background-color:white; padding-top:0; padding-bottom:0; color:black; } .row .text-long .question-valid-container, .row .text-long .question-container { display: none; } .answer-item .answer-container, .answer-item .answer-item { padding: 10px; padding-left: 20px; } .answer-item .answer-container { border: 0; } .slider-container { margin-bottom:0em; } </style>
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ // The Slider sub-question code var otherCode = 'SQ001'; // Identify this question var qID = '{QID}'; var thisQuestion = $('#question'+qID); var nextQuestion = $(thisQuestion).nextAll('.text-long:eq(0)'); // Move the next question $('.answer-item[id$="X'+qID+otherCode+'"]', thisQuestion).append(nextQuestion); }); </script> <style type="text/css">.answer-item .question-title-container { margin-left:40px; margin-right:40px; background-color:white; padding-top:0; padding-bottom:0; color:black; } .row .text-long .question-valid-container, .row .text-long .question-container { display: none; } .answer-item .answer-container, .answer-item .answer-item { padding: 10px; padding-left: 20px; } .answer-item .answer-container { border: 0; } </style>
<style type="text/css">.answer-item .question-title-container { margin-left:7%; width:86% !important; background-color:silver; padding-top:0; padding-bottom:0; color:black; } .answer-item .answer-container { border: 0; margin-left: 6%; width:88%; } .slider-container { margin-bottom:0em; } .komm.question-container { background-color: transparent; border: none; box-shadow:none; } </style>
<style type="text/css">.mat.question-container { margin-bottom: 0em; border-bottom:0; box-shadow:none; } .komm.question-container { background-color: transparent; border-top: none; box-shadow:none; } </style>
aber das ist irgendwie nicht wirklich ausführlich erklärt.