- Posts: 61
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
// Listeners $('.inserted-select', thisQuestion).on('change', function(i) { if($(this).val() != '') { $(this).closest('.answer-item').find('input:text').val($.trim($('option:selected', this).text())).trigger('change'); } else { $(this).closest('.answer-item').find('input:text').val('').trigger('change'); } // 2nd column conditional on 1st column if($(this).closest('.answer-item').hasClass('answer_cell_X001')) { handleColumnX002($(this)); } }); function handleColumnX002(thisSelect) { var thisRow = $(thisSelect).closest('tr.subquestion-list'); var item2 = $('.answer_cell_X002', thisRow); if($(thisSelect).val() == '17') { $('input:text', item2).val('').prop('readonly', false).trigger('change'); } else { $('input:text', item2).val('N/A').prop('readonly', true).trigger('change'); } }
Please Log in to join the conversation.
Please Log in to join the conversation.