I am using the single query to return a record. Of course this works well. However, I want to hide an element if the query has a result. Normally I would use the Hide > Has Items
This option seems to be missing from single queries.
I am using the single query to return a record. Of course this works well. However, I want to hide an element if the query has a result. Normally I would use the Hide > Has Items
This option seems to be missing from single queries.
The has items
is for arrays/collections, the single query doesn’t return that. It returns an object and I believe it will be null or undefined when nothing was returned. So just check if the query returned something.
dmx-hide="serverconnect1.query1"
Great, that works awesome. Thanks Patrick!