Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Community Edition, Version 5.4.10+221107
Own server or LimeSurvey hosting: My own server
Survey theme/template: Skelvanilla
==================
Dear All,
I'm trying to add a JS script that shows me a popup that asks "This is your final submission of survey. Do you want to continue?", when I'm pressing the Send button at the end of a survey.
Browsing the Internet I found this script:
<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>
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:
is someone able to help me on let this script working?
Thanks a lot!
A.