I'm working on a project in WordPress that involves creating long, multi-page forms with conditional logic. One of the challenges I'm facing is that these forms can take a while to complete (and I have very non-savvy users that are prone to misnavigation), so I'm trying to implement an autosave feature that would save the user's progress as they go along.
I'd like to figure out a way to store form submissions in a database as the user progresses through the form, so that if they need to leave the page or their session times out, their answers won't be lost. Ideally, I would like the user to be able to come back to the form at a later time and pick up where they left off.
The particular form in question is a post-user-registration form that is filled out as part of the "fulfillment" process, so it would be associated with their user account.
I understand that handling this on the server-side might involve using AJAX to send the form data to the server at regular intervals, but I'm not sure how to go about implementing this in WordPress or what potential issues I might run into.
Any guidance on how to implement this feature in a way that is efficient and appropriate to WordPress would be really appreciated!