Cognito-forms – Maintaining user submitted entries state so it can be viewed when page reloads in Cognito Forms

cognito-forms

I’m trying to make a Yes/No form and I would like when they select yes and hit submit, to keep the state of the selection when the get back to the page. Any way to do this?

Best Answer

This is similar to the question: Keep Cognito form on every page

I believe this previous answer addresses your question by using an event (in this case window unload) to save the state of the entry to local storage. It then uses support for script-based prefill in Cognito Forms to prepopulate the saved entry when the form loads the second time.

You could similarly subscribe to the click event on the submit button using JQuery if you want to limit the save to this specific event.