In my bubble app i have a workflow to go to the same page when an element is clicked with the parent group’s Workspace (Data Type), (Page data Type is also Workspace). But since it’s the same page bubble doesn’t refresh the page it only changes the page’s data type but I Need it to refresh the page to run some workflows that are crucial for when the page’s Data type (workspace) is changed. I don’t want it to open in an external window either.
Is there a way to make this happen on bubble?
Thanks in advance
use the “refresh page workflow action”
Using refresh page is fine, but not optimal for your use case. Instead use the page is loaded workflow trigger event to run the actions you need when the page data changes.
2 Likes
This will not work because Bubble will throw an error saying that it can’t be the last action in the workflow. One thing you could do if you only want a hard refresh to happen, workspace is switched, is have a URL parameter.
For example, go to the page with the new workspace, add refresh = true as a URL parameter and Do when condition is true: Get refresh from page URL is yes
, and refresh the page.
1 Like
Use the open an external website action. Add a path to be the uid of the workspace and uncheck the open in a new tab. If I remember correctly this is what I did once in a similar scenario.
1 Like
Awesome that worked super well, Thanks a lot.
1 Like
That’s probably the smart thing to do but i have my workflows set up for when the page is loaded and there is a lot of them (well over a hundred). I’ll probably do that after I launch the MVP and get my idea validated. Thanks anyways
1 Like
I believe I tried that and it created a loop, and when i set it to just once I think it didn’t work if the user changed the workspace more than once (i could be wrong). @mmahirf solution worked. But thank you
If you have over 100 do when page is loaded, you need to find a way to reduce that dramatically. I use this trigger very very infrequently in apps as it does run everytime you do a go to page action and you’re on same page.
At very least have conditions on them that keep them very specific.