Conditionally show a button only once a day

Hey guys I am new to Bubble. I need to show a button if some condition is true from the database.

Context

  • It’s a button called Start Shift
  • User’s can only start shift once per day
  • the database has a start shift and end shift date/time entry

Now we want to hide the Start Shift button if:

  • The user is logged in
  • They have already started the shift by clicking the button once
  • This can be also checked by seeing if the end shift for that day is empty

Here’s a video demo:

Ps: Also looking to hire some people to help with some projects so feel free to reach out here 𝕏 → @BappyGolder

Hi there, @bups.co… assuming you are storing a shift as a thing in a data type, one way to do what you described would be to make the button not visible on page load (which you can do by unchecking the This element is visible on page load box on the Layout tab), and then add this condition to the button.

Hope this helps.

Best…
Mike

2 Likes

That solved the problem thank you @mikeloc :heart:

Would like to connect with you to share some ideas let me know if you are up for connecting, and how I can connect.

Sending my best from AU :australia:

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.