# Toggle button that shows/hides groups

**URL:** <https://forum.readymag.com/t/toggle-button-that-shows-hides-groups/2688>\
**Category:** Custom code\
**Created:** [March 28, 2024, 5:33pm UTC](https://forum.readymag.com/t/toggle-button-that-shows-hides-groups/2688 "2024-03-28T17:33:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Pindrys](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/david_pindrys/32/1838_2.png) [@David\_Pindrys](https://forum.readymag.com/u/David_Pindrys)\
**Post date:** [March 28, 2024, 5:33pm UTC](https://forum.readymag.com/t/toggle-button-that-shows-hides-groups/2688/1 "2024-03-28T17:33:24Z")

</div>

Hey folks  
First, LOVING Readymag. I think I may have discovered a use case it doesn’t support (yet) tho.

I am trying to place a toggle button above a section of my page that changes the contents of the page, and changes appearance. I can get the button to hide or show content and itself on click, but getting it back is another issue.

Any ideas on how I could accomplish this?

Thanks in advance!  
 ![1*7P5VS_yHkrB8pBJD9_pa-Q](https://us1.discourse-cdn.com/flex015/uploads/readymag/original/2X/0/04cc8833c493c5fb08e90e76553e5fcb84d23eef.gif)

---

<div class="post-metadata">

**Author:** ![neueMeta](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/neuemeta/32/92_2.png) [@neueMeta](https://forum.readymag.com/u/neueMeta)\
**Post date:** [April 3, 2024, 9:52pm UTC](https://forum.readymag.com/t/toggle-button-that-shows-hides-groups/2688/2 "2024-04-03T21:52:50Z")

</div>

if i got you right: you could set up a transparent shape above the button and use this as the trigger for all the changes. the button would not been shown, but the “trigger” still is.

---

<div class="post-metadata">

**Author:** ![David\_Pindrys](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/david_pindrys/32/1838_2.png) [@David\_Pindrys](https://forum.readymag.com/u/David_Pindrys)\
**Post date:** [April 8, 2024, 9:34pm UTC](https://forum.readymag.com/t/toggle-button-that-shows-hides-groups/2688/3 "2024-04-08T21:34:57Z")

</div>

Thanks for the reply.

What I ended up doing was referencing a toggle button set to A active that shows B content and hides A content on click as the trigger for all B content. The click ALSO hides the button, showing a button to show the A content, hooked up to hide all B and show all A content. A little messy and I ended up going a different, simpler rout 🙂
