Hi there,
I am collecting some text on my home page. When they enter it and click a button, I want to store it into the database, then I want to process that text in the background, while they fill out a form on the next page.
The user is not yet logged in (and may have never registered before), so I don’t know how to associate the text they enter on the home page, with the information I’m collecting on the second page.
In traditional progress, this would be easy with Cookies or Browser Storage. However, Bubble doesn’t seem to have this capability. I’d use Bubble State, but it does not seem to survive past the page it was established.
Any advice on how I can accomplish this?
Thank you.
Just store it on the current User. (Or on another data type associated with the current user)
Current user is unique even when the current user never registered or logged in? Also, is current user the same for the entire session?
Correct.
The current (non registered) user is stored for 3 days.
The only issue with this is if you’re dealing with Users who already have an account on your app, but are not logged in.
If that’s the case then you’ll have to use your own local storage or cookies. (I’d use local storage for this personally).
Thanks. I’ll check this option out.
How do you use local storage or cookies? Would I need a 3rd party plugin?
I’d just use standard JavaScript.
There are probably some existing plugins for cookies / local storage available as well if it’s easier.