Conditionally show a button if a backend query returns a result

As per the title…

I have a column with a backend query that returns a single document. If the query has no results that column doesn't display (is that expected? Can that behaviour be changed?). The button I would like to conditionally show sits outside of the column as a result - however it has no context of the query at that point, it would seem.

I tried to set a value in the Page State on data change, but I noticed this doesn't fire when the query is initially loaded, so won't work

I think I'm missing something basic in terms of a hierarchy of widgets and having access to query results. Any tips would be welcome please, thanks.

1
4 replies