Repeating group empty if no data

I am creating a repeating group, but I only want it to be visible if there is data inside. When the data is empty, I don’t want it to be displayed. Do you know how to do this?
My repeating group also contains a group with elements that are not data.

Thank you.
Bonne journée Antoine

Have a condition on the repeating group. Make it not visible by default and collapse when hidden.

Conditions tab:

When This Repeating Group’s List of Things:first item is not empty, this element is visible.

Best way to go about this is by making the repeating group visible on page load and the collapse when hidden checked. After that, then add an expression in the conditional that says this. Expression is in attached screenshot

In every scenario in which an element is not always visible and is not the child element of a container that already has conditions for visibility it’s best to make things not visible on page load and to have conditions to make them visible.

@antoine.goffard I suggest making RG not visible on page load. Leave data source empty. Put a condition on RG based on do a search count > 0 ( or whatever count operation consumes less WU ) then property to change has 2. First is data source where you add the same search from condition and second is make element visible.

2 Likes

thank you everyone for your help !!!