For people building 1 page style apps, showing and hiding groups based on conditionals to emulating navigating pages, how do you show a group/element that was visible/in-use before a page refresh?
I dont want my users to have to re-navigate through everything just because the page has been refreshed.
I have been using url parameters, so when the page is refreshed, the user doesnât lose where they were at. Have you worked with url parameters before? Itâs similar to using set states.
So you can choose âGo to pageâ in a workflow and choose the page you are in. Then add a parameter called âpageâ and you can send it either dashboard or settings.
Then on the condition of your element you would hide it by default and then display it when âGet data from page URLâ and choose âpageâ is âdashboardâ. Then show the dashboard element.
Does that make sense?
If I was at my computer I would give you and example.
Are you familiar with workflows that might allow a new user to âget startedâ with a service and then sign up/login somewhere in the middle of the process?
I have a particular issue with figuring out how to work with returning users who may have started creating new things within my bubble database without first logging in, and keeping those things attributed to them within the database once they eventually log back in.
For example, letâs say I have a workflow that allows a user to create a âvehicle.â New users can create the vehicle, sign up in the middle, and the data will carry over. Theyâll be recognized as the thingâs creator.
But for returning users, the vehicle will no longer be associated with the user once they log back in. And I cant change the thingâs âcreatorâ to be the current user.
You can attach things to the current user as you are building it then once they create an account it will still be attached to them. So maybe have a field on the user called vehicle and attach it that way instead of referencing the vehicle based on who created it? Would that work?
That is similar to another trick I was going to try, which was to make the vehicle a âstateâ throughout the workflow so that if the page is reset or the returning user is logged in, everything will just repopulate whatever groups/fields Iâd have.
You would do a âGo to pageâ on âpage is loadedâ if there is no page in the URL. Also, each button that you click to change the âviewâ on your page would also have this âGo to pageâ in the workflow.