How do I collapse an element into a repeating group when the value is empty?

Hi everyone,

This is the issue I am trying to solve. Right now one of my Thing is an entity called post. Post data includes: a creator name, a photo, and a message.

In my repeating group they are displayed in the same order. From top to bottom.

How do I make it so that if the user doesn’t add a photo to the message, the height of the photo element collapse? I try using condition but it doesn’t work.

Thank you

Place the picture in a group and tick the collapse this elements height if hidden. Then on conditional, set the group to be hidden of groups picture is empty.

Hi nfish! I thought about that but I don’t have that option in my settings for the image. Are you suggesting I should put the image into a group and then into the repeating group?

yes, then hide the group if there is no picture.

1 Like

Thank you! That worked!

1 Like

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