My page has a header and a repeating group, and there’s a button in my header. When I click this button, I want to show/hide an element contained inside the repeating group.
Apparently this isn’t possible…? See these two screenshots:
Apparently it isn’t possible, as far as I can tell. In my case I’ve found a workaround. However I’m still interested about this.
It’s very possible, and simple… but exactly how to do it will depend on whether you want to hide the button in every cell, or a specific cell, hence why I asked that question previously…
But if you don’t want to answer, and have already found a workaround then that’s all that matters…
Well, if you only ever want to hide a single button, just create a custom state that contains either the cell index, or the cell’s thing, then have a conditional on the Button to make it not visible when that custom state value is the current cell’s index (or thing)…
If you want to hide multiple buttons, then just make that custom state a list, and use the conditional when the custom state value contains the current cell’s index (or thing), hide the Button.