- Posts: 14
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
LimeSurvey is not suitable for Choicetasks. Consider using a proper tool like Sawtooth Software.Rexha wrote: Aside note, I will have to build 81 tables all containing differente text information, there isnt any other method more simple to do this?
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('#question{QID} table.subquestions-list').addClass('custom-array-1'); $('#question{QID} table.subquestions-list thead td:eq(0)').remove(); $('#question{QID} table.subquestions-list thead tr:eq(0)').prepend('<th />'); $('#question{QID} table.subquestions-list thead th:eq(0)').html($('#question{QID} th.answertext:eq(0)').html()); $('#question{QID} th.answertext:eq(0)').html(''); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { var columnCount = $('#question{QID} table.subquestions-list thead tr:eq(0) > *').length; $('#question{QID} table.subquestions-list').addClass('custom-array-1'); $('#question{QID} table.subquestions-list thead thead tr:eq(0)').hide(); $('#question{QID} table.subquestions-list thead').append('<tr class="inserted-row"><td colspan='+columnCount+'></td></tr>'); $('#question{QID} table.subquestions-list .inserted-row td:eq(0)').html($('#question{QID} th.answertext:eq(0)').html()); $('#question{QID} th.answertext:eq(0)').html(''); }); </script>
table.custom-array-1 { width: 100%; max-width: 1260px; border: 1px solid #333333; } table.custom-array-1 .inserted-row td { text-align: center; padding: 0; } table.custom-array-1 .inserted-row img { width: 100%; } table.custom-array-1 tr.array2:hover { background-color: #EEEEEE; } table.custom-array-1 td.answer-item:hover { background-color: #DDDDDD; }