Content Blocks - Is it Possible to Conditionally Hide Array Types?
Last updated: Jun 28, 2022
Hey, all! I have an array of various object types and I want to conditionally hide some of those array types based on the value of another field. I've tried a bunch of different things and nothing seems to work. Would appreciate any advice! Here's an example of what I'm trying to do (for the last item):
There currently isn't a way of conditionally showing options inside of an array. You could use conditional fields to return an entirely different array depending on another field though.
Jun 27, 2022, 7:09 PM
Thanks for the response! I ended up having some more complex requirements for singleton pages, so I just used a different document altogether that has a different set of blocks, but what you're suggesting was the next thing I tried and it worked well. Appreciate it!