Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" data-author="Tony Partner">
$(document).on('ready pjax:scriptcomplete',function(){
$('#question{QID} :radio').on('change', function(e) {
$('#ls-button-submit').trigger('click');
});
});
</script>
<script type="text/javascript" data-author="Tony Partner"> $(document).on('ready pjax:scriptcomplete',function(){ var delay = 10; // Delay time in seconds $('#ls-button-submit').addClass('hidden').hide(); setTimeout(function() { $('#ls-button-submit').hide().removeClass('hidden').fadeIn(500); }, delay*1000); $('#question{QID} :radio').on('change', function(e) { $('#ls-button-submit').trigger('click'); }); }); </script>
This is always the case as the JavaScript is loaded. A workaround would be to hide the #ls-button-submit element in custom.css but this would affect all groups/pages using that survey theme....although the "Next" button flashes once after the page is loaded.
<script type="text/javascript" data-author="Tony Partner"> $(document).on('ready pjax:scriptcomplete',function(){ var delay = 2; // Delay time in seconds $('#ls-button-submit').addClass('hidden').hide(); setTimeout(function() { $('#ls-button-submit').hide().removeClass('hidden').fadeIn(500); }, delay*1000); $('#question{QID} :radio').on('change', function(e) { setTimeout(function() { $('#ls-button-submit').trigger('click'); }, delay*500); }); }); </script>