Hide header text when repeating group is empty

I thought this would work with a simple conditional, but doesn’t seem to be taking effect.

I have a simple header and a repeating group below it. If there is no data to show because the data doesn’t meet the search constraints, the header above also should not be visible and the group should collapse. What I am finding is that the repeating group won’t show (as there’s no data to present, which is fine), but the header remains.

This is my conditional

Is there something that I’m not understanding in that the repeating group think its actually not hidden even when there’s no data to display?

Hi there, @JS7319… try a condition where a count of the repeating group’s list of things is 0.

Best…
Mike

1 Like

Why don’t you set the condition on header “Repeating group data count is 0” then hide it.

Ankur@ Nocodetalks
Looking for a Bubble Coach? Check out here

2 Likes

Is there something that I’m not understanding in that the repeating group think its actually not hidden even when there’s no data to display?

Yes… the RG is still technically visible (i.e. it’s drawn on the page), even if there is no data in it (check the debugger to see that for yourself)…

You need to use the condition When RG's list of things count is 0 or When RG's list of things first item is empty… or you can of course use the same expression you used in the search…

2 Likes

Thanks all, its fixed!

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.