Disabling a button unless an event completes

How do I grey out/ disable a button from being pressed unless another query completes or another event completes.

Hi @srivya! Are you looking for something like this? A query's .isFetching property will be true when the query is running!

Yes, I believe so. Thank you so much Victoria!

Hello @Victoria, is it also possible to check for a condition in the disabled section? Something like if the query result is this rather than this. I was thinking of using a transformer but I am not sure if the disabled option itself can handle a conditional operation.

Actually, I think I can return True or False in the transformer and use that value to disable or enable the button. So this should work. Sorry for sending so many messages.