Condition to display icons based on files saved in the database does not work

Hello everyone, I’ve already made several queries to GPT, Doc and videos on ytb but I still haven’t been able to figure out why when placing a condition on icons so that they only display if there is a file saved in the documents field of the units table. In this table I have 1 field that receives a list of documents. I have a repeater group and I want to display the icon based on that. If there are documents, display a green icon, if there are not, display red.
I created 2 conditions so that it would check in the database if documents count > 0 and document is 0 to display the red icon.
I have already examined the repeating group and it does not bring the documents, only the other fields.



Hi, @leonardobelizario88, I believe that where you are writing when in the conditional, it needs to be search for units > 0, in that line because you need to check with the database and not in the visual element.

Hi @leonardobelizario88

Check the icon, in the layout tab, if the option “collapse when wide” is checked. And the option “This element is visible on page load” must be unchecked.