Icon doesn`t refresh condition after database change

Good morning all!
The gray icon in the image below supposed to be yellow. Gray is the standard color, without conditions applied. I need to refresh the page to get the right condition applied.


Arbitrary Texts are the status text that supposed to support the conditions configuration.

Thanks!!

So the condition changes after the page is already loaded while your icon color doesn’t change, Right ?
That’s normal because the conditions are evaluated on the page load that’s why when you refresh the page, the correct icon color is displayed.
I would suggest you use custom states instead.
Hope this helps !

Thanks for the reply!!

But actually the condition in Bubble is checked in real time. When it changes in the back end a websocket refreshes the info in the frontend. You can make the test by changing a data manually in the database and check for the status of the object. I use it all over my application.

But specificaly in this case, sometimes the icon doesn’t behave as expected.

I tried custom states already. But it didn’t work.

Thanks again!

ok noted. Thanks for your reply. So in this case are you sure your conditions are correct ? Did you try to print out the result of your conditions to verify their correctness ?
Also do your conditions contradict with other conditions ?

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