All my pop-up’s “clean” their respective States when the “Close” or “Cancel” buttons are click and then hide the pop-up.
But what if the user clicks outside? It still closes but how do I set a Workflow for setting states values?
Thanks!!
All my pop-up’s “clean” their respective States when the “Close” or “Cancel” buttons are click and then hide the pop-up.
But what if the user clicks outside? It still closes but how do I set a Workflow for setting states values?
Thanks!!
Hey @jfasja
There are a few ways to do this. One way is to just clear the states when opening the popup. Does that make sense? Would that work for what you need?
Another way is to not let them close it by pressing esc, this way, they can’t click outside either.
Yet another way, you can have a “do this action every time this element isn’t visible” and clear the states in that workflow.
Hope that helps!
For All Your No-Code Education Needs:
Thanks! Interesting, I previously thought about the first 2, mostly the first one. Since not letting them close with esc seems bad experience.
I thought maybe there was a straight way to do it. Last option also seems like a good safety net idea.
Thanks for your time!
Happy to help.
Hi, folks… I didn’t see this particular solution offered up, so I thought I would mention that this workflow event appears to do exactly what the original post is asking…
The funny part is the documentation for that event says it is triggered through a hide element action or when the user presses Esc, but I have seen it work when you click outside of a popup to close it. Go figure.
Anyway, just one more way to accomplish the task, unless my eyes have deceived me and it doesn’t actually work the way I think it does.
Best…
Mike
Thanks!! this actually seems to be the safest and most comprehensive solution. Weird that it’s not “popular”.
I am amazed by the Bubble community, someone always willing to help. So inspiring. hope to be able to give back.
Cheers!
This topic was automatically closed after 70 days. New replies are no longer allowed.