Skip to main content
All CollectionsBubble FeaturesQuick Tips
How to Trigger Workflows From Popup Events
How to Trigger Workflows From Popup Events
Updated over a week ago

Transcript

In this Quick Tip, we're going to learn about the popup events that you can use to trigger a workflow.

We have two popup events: A popup is closed and A popup is opened. You can utilize these events to trigger actions in between a popup opening and closing.

Create a workflow using one of these popup events and pick the relevant popup in the property editor, and then create subsequent actions. You can put any actions you want here, though it's more likely you would do something to interact with the popup being opened or closed.

For example, you could track how many times this popup has been opened by setting a custom state to add 1 each time this popup is opened! Likewise, if we create a workflow for when a popup is closed, we could do something like reset data in a group or trigger an alert. You can view these events in the debugger and see them in action when you show and hide your popup like so.

Not every workflow needs to fire off from when something is clicked, and finding creative ways to use other events like these will come in handy as your app grows.

That's it for this Quick Tip! For more, be sure to check out bubble.io/academy.

Did this answer your question?