- Posts: 3
- Thank you received: 1
Ask the community, share ideas, and connect with other LimeSurvey users!
Unfortunately this code doesn't work for me because if I click on the "cancel" button, the script acts like when I click on the "OK" button:<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
// Interrupt the submit function
$('#ls-button-submit').click(function(){
if(confirm('This is your final submission of survey. Do you want to continue?')) {
return true;
}
else {
// the user clicked cancel, let's stop the form submission
e.preventDefault();
e.stopPropagation();
return false;
}
});
});
</script>
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.