- Posts: 5
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
That's it!The idea is to rate several persons on some dimensions at the same time, so being able to hop from one person to another.
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ var thisQuestion = $('#question{QID}'); var arrayQuestions = $(thisQuestion).nextAll('.question-container.array-flexible-row'); // Loop through the answer items $('.answers-list > div.bootstrap-buttons-div', thisQuestion).each(function(i) { var thisRow = $(this); // Hide button with no text if($.trim($('label:eq(0)', thisRow).text()) == '') { $(thisRow).hide(); } var thisIndex = $(thisRow).index(); var thisArrayQuestion = $(thisRow).closest('.question-container.list-radio').nextAll('.question-container.array-flexible-row:eq('+thisIndex+')'); // Hide the array questions if($('input:radio:checked', thisRow).length == 0) { $(thisArrayQuestion).hide(); } // Listener on the radios $('.button-item', thisRow).on('click', function(e) { $(arrayQuestions).not(thisArrayQuestion).hide(); $(thisArrayQuestion).fadeIn(300); }); }); }); </script>