- Posts: 6
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
{if(!is_empty(SELECTEDPERSON_01), PERSON_01, if(!is_empty(SELECTEDPERSON_02), PERSON_02, if(!is_empty(SELECTEDPERSON_03), PERSON_03, if(!is_empty(SELECTEDPERSON_04), PERSON_04, if(!is_empty(SELECTEDPERSON_05), PERSON_05, '')))))}
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ // Identify this question var thisQuestion = $('#question{QID}'); // Listener on the checkboxes $('input:checkbox', thisQuestion).on('change', function(e) { if($(this).is(':checked')) { $('input:checkbox', thisQuestion).not(this).prop('checked', false).trigger('change'); } }); }); </script>