Answer the question
In order to leave comments, you need to log in
Where to store temporary form data when the user fills it out?
Colleagues, good time!
I'm working on a web project in which the user has to fill out a survey form in 6 steps/pages with a bunch of inputs, checkboxes and pictures. There was a question and how to store the data of forms? Writing everything to the database from the first step does not work, there is experience, many users clicked and left, but the records in the database remained! Sessions, I was interested, but I doubt it, I came across such a comment - link .
Need advice, should there be some good practice?!
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
localstorage.
and it’s not a problem to store in the database - it’s easy to periodically clean up old unfinished records.
Localstorage, if you write in react, you can throw it into the context somewhere, through usecontext
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question