DUPLICATE: {query_results_count:ID} doesn't work in conditions if the generated query ID is all numbers

Video: Bricks query results count bug.mp4 - Google Drive

If the portion of the auto-generated Bricks ID used for the query loop ID is only numbers, the {query_results_count:ID} doesn’t function properly in conditions. In the video linked above, one item with a query loop is all numbers. When targeting that query with the dynamic data tag for count > 0, the condition doesn’t allow it to show, even though the count is 4. I duplicated that item so that it would generate a new ID, put the new ID into the condition and it works as normal.

Same issue as mentioned here: Query_results_count with terms - #4 by vacdk

1 Like

Hi Allen,
Thanks so much for your report!

Even if your report is slightly older, I’ll close it and refer to the one mentioned by Sridhar (thanks:yellow_heart:), as it already contains a workaround (just duplicate the element to get a new element ID).

Best regards,
timmse

1 Like