# Custom states help

**URL:** <https://forum.bubble.io/t/custom-states-help/335384>\
**Category:** Need help\
**Created:** [August 15, 2024, 3:00pm UTC](https://forum.bubble.io/t/custom-states-help/335384 "2024-08-15T15:00:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tp1](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@tp1](https://forum.bubble.io/u/tp1)\
**Post date:** [August 15, 2024, 3:00pm UTC](https://forum.bubble.io/t/custom-states-help/335384/1 "2024-08-15T15:00:49Z")

</div>

Hi, im creating a booking system based off this guys tutorial: [youtube link](https://www.youtube.com/watch?v=uypr3kTMVWk&t=339s)

I have custom states assigned to a button when clicked to change the colour & value to indicate to the user the action has been carried out.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/e/0/e0b3ada94a6b2c6a6e15854744a2f5f48e76d73e.png)

When I change the day select to another day availability the custom state of the button obviously remains the same - causing confusion to the user. I need a way of resetting this or marrying it up if data is present or not.

Im new to bubble & am unsure how to apporach this.  
workflows for data below:

**Add hours from availability:**

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/9/7/97478a319a8a357852b56fea7b7659b0668913c2.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/9/a/9a0833744fde60dbefe9a12a48871a33cb246f65.png)

**Remove hours from availability:**

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/0/f0385c368bc349dd1b9845acc98ddbba2e123bf6.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/8/3/83466aadafde6f0eb123c36a59fae7670586149c.png)

**Button custom states & Conditional**

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/8/7/872371b52578970e1e32e76e227709f6e3c4aed9.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/2/3/23a1b5f47f2e623972cdb3e363e22a39467fa69d.png)

Thanks in advance for any help 🙂

---

<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:** [October 24, 2024, 3:00pm UTC](https://forum.bubble.io/t/custom-states-help/335384/2 "2024-10-24T15:00:56Z")

</div>

Closed on October 24, 2024, 3:00pm UTC

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