Hello there,
I’m using a database and what i want is, whenever a user submitted a form, i would store the _id and their name and put in the local storage (to act as a cookie).
How can i achieve this?
Hi!
_ID is created automatically by the system.
In order to retrieve any data item/field, you can use the Wix Data API in order to create a query .
The query returnes items from the specified collection that are compatible with the restrictions you’ve set.
Once you’ve got the data you wish to store, you can use the Wix Storage API in order to assign data to the session/local storage.
Let me know if it works for you!
Doron.
Good Day Is possible for me to add you as a contributor to my site to work on something?