Hello
I would like to know how to make first option (Not applicable) in each column prefilled (default). I already know how to do it in standard array (by row) with the code below:
Code:
<script type="text/javascript" charset="utf-8">
$(document).on('ready pjax:scriptcomplete',function(){
// Identify the questions
var qID = {QID};
var q = $('#question'+qID);
// Default answers
$('table.subquestion-list tr.answers-list', q).each(function(i) {
if($('input[type="radio"]:checked', this).length == 0) {
$('input[type="radio"]:first', this).trigger('click');
}
});
});
</script>
In addition, I would like to have radio button for first column (I) option 'Not applicable' disabled all the time (no default answer for this column).
My version of Lime: 3.3.1, survey attached.
Thank you in advance
P.S.
It would be helpful to have a page with 'Make default option for question type: xxx' with code for all questions that don't support 'Default answer' or to have it implemented inside LimeSurvey