# Show/hide item for time event

**URL:** <https://forum.bubble.io/t/show-hide-item-for-time-event/208466>\
**Category:** Need help\
**Created:** [May 26, 2022, 9:18am UTC](https://forum.bubble.io/t/show-hide-item-for-time-event/208466 "2022-05-26T09:18:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![junaid.cordis](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@junaid.cordis](https://forum.bubble.io/u/junaid.cordis)\
**Post date:** [May 26, 2022, 9:18am UTC](https://forum.bubble.io/t/show-hide-item-for-time-event/208466/1 "2022-05-26T09:18:48Z")

</div>

Hello i need some help, when logged in user click on “time in” button then “absent” and “work from home” button should be disappear till the next day how can i do it need suggestions  
 ![Capture](https://us1.discourse-cdn.com/bubble/original/3X/b/6/b641ab0dde50111c3bd704f2ef39ad72c60ab212.jpeg)

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [May 26, 2022, 9:34am UTC](https://forum.bubble.io/t/show-hide-item-for-time-event/208466/2 "2022-05-26T09:34:10Z")

</div>

Hi there, @junaid.cordis… because it is assumed that the user will have to click the _Time Out_ button at some point after they have clicked the _Time In_ button, one way you could go is to have a field on the `User` data type that you set to a particular value when the user clicks the `Time In` button. Then, add a conditional to the `Absent` and `Work from home` buttons that hides each button when the user’s field is set to the particular value. Finally, when the _Time Out_ button is clicked, clear the value in the user’s field, and the buttons will reappear.

I’m also assuming you are creating a thing in a data type when the _Time In_ button is clicked. So, another way you could go is to use the creation of that thing and its lack of a “time out” value to drive the conditionals on the buttons.

Hope this helps.

Best…  
Mike

---

<div class="post-metadata">

**Author:** ![junaid.cordis](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@junaid.cordis](https://forum.bubble.io/u/junaid.cordis)\
**Post date:** [May 26, 2022, 9:41am UTC](https://forum.bubble.io/t/show-hide-item-for-time-event/208466/3 "2022-05-26T09:41:57Z")

</div>

Thanks @mikeloc i will work on your suggestions to see if thats working for me 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [August 4, 2022, 9:19am UTC](https://forum.bubble.io/t/show-hide-item-for-time-event/208466/4 "2022-08-04T09:19:28Z")

</div>

Closed on August 4, 2022, 9:19am UTC

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