- Posts: 18
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
$(document).on('ready pjax:scriptcomplete',function(){ // Identify some elements var thisQuestion = $('#question{QID}'); var mapCheckbox = $(':checkbox:last', thisQuestion); var mapQuestion = $(thisQuestion).nextAll('.text-short:eq(0)'); // Listener on the checkbox $(mapCheckbox).on('change', function(e) { handleMap(); }); // Initial state handleMap(); // Function to handle the map visibility function handleMap() { if($(mapCheckbox).is(':checked')) { $(mapQuestion).removeClass('custom-hidden'); } else { $(mapQuestion).addClass('custom-hidden'); } }; }); </script>
<style type="text/css" data-author="Tony Partner"> .custom-hidden { position: absolute; left: -9999em; } </style>
Please Log in to join the conversation.
If i don't make error : this issue was already fixed in 3.XThe map is working but, as the question is initially hidden by relevance, the map is rendered at its smallest possible size.
You will either need to move it to another group or hide the question via CSS and use JavaScript to show it when the "indicate it on the map" checkbox is selected.
Please Log in to join the conversation.
Please Log in to join the conversation.