- Posts: 5056
- Thank you received: 1267
Ask the community, share ideas, and connect with other LimeSurvey users!
No, it's allright.CarolinEkman wrote: At this point, should I still submitt this survey with only the relevant questions?
Even if the bug would be fixed anytime soon, your LimeSurvey version will not receive any fix. That's why I recommend to contact the admin of your installation. The WHO has some connections to LimeSurvey regarding special modifications.CarolinEkman wrote: Do you know how much more time I can expect it to take to have the bug report processed?
As a LimeSurvey user you just want your tool to work.CarolinEkman wrote: So you mean I should contact someone internally at WHO who may know about this specific version of LimeSurvey?
Take the survey from my bugreport. bugs.limesurvey.org/view.php?id=13978tpartner wrote: Are the questions on the same page? (we never did get a short test survey)
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify the questions var thisQuestion = $('#question{QID}'); var prevQuestion = $(thisQuestion).prevAll('div[id^="question"]:eq(0)'); var prevQCode = $(prevQuestion).attr('id').replace(/question/, ''); // Hide this question $(thisQuestion).hide(); // An array for the sub-question codes var sqCodes = []; // Loop through the previous question sub-questions $('tr[id^="javatbd"]', prevQuestion).each(function(i) { var thisCode = $(this).attr('id').split('X'+prevQCode)[1]; sqCodes.push(thisCode); }); // Load the input $('input:text:eq(0)', thisQuestion).val(sqCodes); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question{QID}'); // Get the previous sub-question codes var sqCodes = '{q1Order}'.split(','); // Loop through the previous question sub-question codes $.each(sqCodes, function(i, val) { // Move the corresponding array row $('table.subquestions-list tbody:eq(0)', thisQuestion).append($('tr[id$="X{QID}'+val+'"]')); }); // Fix up array row background colours $('table.subquestions-list tbody > tr', thisQuestion).each(function(i){ $(this).removeClass('array1 array2').addClass('array'+(2-(i%2))); }); }); </script>