- Posts: 24
- Thank you received: 5
Ask the community, share ideas, and connect with other LimeSurvey users!
Remember that each row means a column in the database and depending on your database engine, you might run into a limit at around 1000 columns...I`ll do so many rows, they can`t finish. 500 mayby or 1000....
Q1... <script type="text/javascript" data-author="Tony Partner"> $(document).on('ready pjax:scriptcomplete',function(){ // Identify this question var thisQuestion = $('#question{QID}'); var thisTable = $('table.subquestion-list:eq(0)', thisQuestion); // Hide all but the first array rows $('tbody tr:not(:first)', thisQuestion).hide(); // Remove repeat heading rows if($('tbody', thisTable).length > 0) { $('tbody:gt(0) tr[id^="javatbd"]', thisTable).appendTo($('tbody:eq(0)', thisTable)); $('tbody:gt(0)', thisTable).remove(); } // Listener on the radios $('.answer-item :radio', thisQuestion).on('click', function(event) { var thisRow = $(this).closest($('tr[id^="javatbd"]')); var nextRow = thisRow.nextAll('tr[id^="javatbd"]:eq(0)'); if(nextRow.length > 0) { thisRow.fadeOut(300, function(e) { nextRow.fadeIn(300); }); } }); }); </script>
$('.answer-item :radio', thisQuestion)
$.ajax({ url: check_quota_url, . . .
$(document).keypress(function (e) { var key = e.which; if(key == 61 || key == 43 ) // the enter key code { $('#answer645263X5X10146Val1-Like').click(); return false; } if(key == 95 || key == 45) // the enter key code { $('#answer645263X5X10146Val1-Dis').click(); return false; } } );
thisRow.fadeOut(300, function(e) { nextRow.fadeIn(300); });
Val1-Like
Val1-Dis