Hey there y’all!
I’m wondering if it’s possible to have a top alert banner be conditional to show only when a toggle switch is set to “active” and collapse to nothing/hidden when it’s toggled off?
Here’s the “active” state of the alert banner:
I have the banner set up inside a collection item that’s limited to one item, filtered to show it only if its toggle is set to “active” which works great, but then when I disable it, then it shows up with a grey bar saying “no items found” like so:
Is there a way to set this up so the top banner collapses/hides completely if it’s inactive?
P.S. — I know we can make elements conditionally visible on actual CMS Collection pages, but can this same functionality exist in Collection Lists on regular non-CMS pages?