RG: how to let people to display it vertically or horizontally


I would like to let my app user to display repeating group in one row or in one column.

Hi there, @elena… one way (the only way?) to do what you described is to have both configurations (that is, two repeating groups) on the page, but only show one of them based on how the user has decided they want to see the information. I have no idea how you are letting users make that decision, but you would have conditionals on the repeating groups that are driven by however you are doing it. You would also want to consider getting the data source for both repeating groups from a “central” place (e.g., a custom state, a hidden popup, etc.) so you aren’t pulling the data twice.

Hope this helps.

Best…
Mike

Hi @mikeloc , thank you for your answer! You understood my challenge perfectly. If I understand correctly I have no choice to add two RG. But I precisely wanted to avoid having two RG because I have a multitude of sub-levels.

To the best of my knowledge (seemingly confirmed by posts like this one and this one), you can’t conditionally change the layout of a repeating group. So, unless I am missing something, I believe the only way to go here is to have two repeating groups.

1 Like

Yeah still the case, unfortunately.

With that said, maybe experimenting with the new responsive engine and using the width condition might provide some flexibility here for this using one instance of a repeating group. Just a thought.

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