I have a one-page survey, and am experiencing that answers are not stored, unless the "Submit"-button at the bottom is clicked (which, surely, is the expected survey behavior). However, is there a way to ensure that answers are collected, even when the respondent refreshes the browser to start over - instead of clicking the button? Could one collect answers in real time, for example?
Alternatively, how could I create a second button at the top of the survey, which would also serve as a way to complete it and store the entered data? It is not paramount that all fields are filled every time, and the same user will respond to the survey many times, so my main concern is to remove any unnecessary hurdles. I have made an attempt at this, using jQuery:
Code:
if (window.print) {
$( "#customsubmit" ).button({
label: "Submit"
});
$( "#customsubmit" ).click( function() {
document.limesurvey.submit();
});
}
This successfully completes the survey when I click on "Submit" but, alas, does not store any data. Even though the
document.limesurvey.submit(); seemed tailored for the purpose... Is there another function I could use instead? Or do I need to make adjustments to my code? My LimeSurvey version: 2.05+