# Button State Changes when Database Property Changes

**URL:** <https://forum.adalo.com/t/button-state-changes-when-database-property-changes/54397>\
**Category:** Get Help\
**Created:** [March 6, 2025, 8:07pm UTC](https://forum.adalo.com/t/button-state-changes-when-database-property-changes/54397 "2025-03-06T20:07:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![delgesu1745](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@delgesu1745](https://forum.adalo.com/u/delgesu1745)\
**Post date:** [March 6, 2025, 8:07pm UTC](https://forum.adalo.com/t/button-state-changes-when-database-property-changes/54397/1 "2025-03-06T20:07:34Z")

</div>

I’m trying to figure out a way to have the button state change be based on when a value in a database property changes, but since the screen doesn’t auto refresh when data changes, the button state change doesn’t trigger. We are trying to link out to Stripe’s checkout page to allow customers to enter their payment info securely and have it be saved in Stripe, then return to the checkout process on our Adalo app and go on to the next step, which is why we want to have the button state change after we update the database via the api and then have the button become “Actionable” when that property changes.

---

<div class="post-metadata">

**Author:** ![nicoledalo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/nicoledalo/32/36519_2.png) [@nicoledalo](https://forum.adalo.com/u/nicoledalo)\
**Post date:** [March 7, 2025, 3:01am UTC](https://forum.adalo.com/t/button-state-changes-when-database-property-changes/54397/2 "2025-03-07T03:01:29Z")

</div>

Hi @delgesu1745

You can make the button a list then filter it. set it to refresh. maximum number of items 1. ALSO, maybe you can use change input value and input field and set the visibility conditions of the button based on the input field.

---

<div class="post-metadata">

**Author:** ![delgesu1745](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@delgesu1745](https://forum.adalo.com/u/delgesu1745)\
**Post date:** [March 7, 2025, 3:56am UTC](https://forum.adalo.com/t/button-state-changes-when-database-property-changes/54397/3 "2025-03-07T03:56:49Z")

</div>

Thanks for responding @nicoledalo! I’m not sure I follow on the button list refresh suggestion. So if it’s a list of buttons then you mean set it to auto refresh when a user adds and item in the advanced settings? I guess I don’t see how this would work as the user has to add the item then. It can’t be driven by if we change a field in the database. Maybe I’m misunderstanding though.

On the second suggestion, we don’t really have fields they fill in on this screen. This action is based on something they do outside of the Adalo app, which is why it’s proving hard to achieve.

---

<div class="post-metadata">

**Author:** ![primedev06](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/primedev06/32/36453_2.png) [@primedev06](https://forum.adalo.com/u/primedev06)\
**Post date:** [March 7, 2025, 10:12pm UTC](https://forum.adalo.com/t/button-state-changes-when-database-property-changes/54397/4 "2025-03-07T22:12:34Z")

</div>

what i suggest is you having another button but you change the visibility of the button to be visible only when a certain criteria is met

you can use a boolean function for this and am sure it will work as expected

---

<div class="post-metadata">

**Author:** ![agallardo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/agallardo/32/36585_2.png) [@agallardo](https://forum.adalo.com/u/agallardo)\
**Post date:** [March 8, 2025, 11:02am UTC](https://forum.adalo.com/t/button-state-changes-when-database-property-changes/54397/5 "2025-03-08T11:02:47Z")

</div>

Hi, if you are using Windows 11, this may be the cause.  
It is happening that some screens are not updating when values ​​in the database change only if you are using Windows 11.  
Could you try to run your application on Windows 10 and Windows 11 and evaluate the results?  
I am having this kind of problem, and I see that it only occurs in these situations.  
I have already reported the bug to support, and they are evaluating it.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [March 18, 2025, 11:03am UTC](https://forum.adalo.com/t/button-state-changes-when-database-property-changes/54397/6 "2025-03-18T11:03:35Z")

</div>

Closed on March 18, 2025, 11:03am UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
