We are working on a survey with multiple questions shown on a single page (e.g., 3-5 questions, no page breaks). Users may answer one or more questions and then close the survey without clicking the "Next" or "Submit Feedback" button.
Issue: Currently, if a user interacts with just one question and closes the survey (e.g., without submitting or navigating), their responses are not saved. This results in losing valuable user data, even though they engaged with the survey.
Requirement: I need a way to auto-save responses as soon as users interact with any question, ensuring partial responses are captured even if the user does not click "Submit" or navigate to next page.
Is there a JavaScript-based solution that saves responses on user interaction (e.g., when change
or input
events are triggered)?
Thank you in advance for your help!