I have a survey with just one question - multiple short text with 10 options to fill in.
Data is only saved ofcourse when you click next or finish.
But I also want to save the options when somebody didn't clicked on next or finish.
Not sure if this would be the correct approach but I was thinking the following:
Create another hidden question before the real multiple short question and save the answers there as well.
I'm on vacation, working from phone, so can't offer any substantial code but I think you would need to put a listener on the keyup/change/paste events of the inputs that makes an AJAX call to a remote PHP script to update the database directly.
Thanks for pushing me in the right direction.
For now I have made a small workaround to save the data with php write to a file (when somethings changes in the input).
If you need to do the same as what I have tried you can do the following:
When the input changes from the open text it will also change the answer option from another question.
In my case I also need to do this for incomplete data but that is not working.
The example code above is just more if you want to autopunch another question.