Golder
October 27, 2023, 12:09am
1
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
mikeloc
October 27, 2023, 12:46am
2
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
Golder
October 29, 2023, 3:25am
3
That solved the problem thank you @mikeloc
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
1 Like
system
Closed
January 5, 2024, 12:10am
4
This topic was automatically closed after 70 days. New replies are no longer allowed.