How to create time dependent workflows in

How to create time dependent workflows in

Himanshu Sharma
Himanshu Sharma

If you want to restrict certain workflows to run only based on the user's time, you can use conditional statements. For example, a user should be able to add new products to their store only between 8 am to 8 pm. Or a user should be able to change the product prices only between 10 am to 12 pm.

Setting up the workflow

Let's say you have a button which triggers the workflow that you want to restrict. I've created 3 buttons which will run only when my time is within the time period mentioned in the buttons.

In the workflows, I've added conditional statements.

With this statement, I am extracting the hour component of the current user's date and time and using it to restrict the workflow between 12 am (0000 hrs) and 6 am (0600 hrs). You can similarly extract the day, minute, second or any other date and time component.

You can use the :extract function in a variety of different situations.

Preview -

Editor -

Honest Review - the most user-friendly and powerful app builder?
Bubble is an amazing platform to build your business. It’s easy to use and can be up and running in a very short time. However, there are some limitations to what Bubble can do. Get an honest review of the pros and cons of

If you need some help with your Bubble app or a team of Bubble developers to build a Bubble app for you, reach out to me at [email protected]. You can also follow me on Twitter.

Join the conversation.