Hi - I have a form that submits some data to a database collection. Between the form and the collection, I’ve added a before insert Javascript function to generate and identifier.
I want to show a confirmation page that displays the id (as well as one of the other fields on the form). How can I feed this data through to the confirmation page? Can I use wix-storage? Should I retrieve from the database collection? If so, how do I share the key of the collection row to be retrieved?
Hi Paul,
Welcome to the Wix Code forums.
You can certainly use wix-storage to persist data for sharing across pages. You can use session for saving data for a user’s site session, or local for longer term persistence. You can also use clear() or removeItem() to permanently delete the stored data if you decide you don’t want the data around any longer.
Have fun,
Yisrael