# Completely hide group when condition met

**URL:** <https://forum.bubble.io/t/completely-hide-group-when-condition-met/155142>\
**Category:** Database\
**Created:** [June 10, 2021, 2:30pm UTC](https://forum.bubble.io/t/completely-hide-group-when-condition-met/155142 "2021-06-10T14:30:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [June 10, 2021, 2:30pm UTC](https://forum.bubble.io/t/completely-hide-group-when-condition-met/155142/1 "2021-06-10T14:30:36Z")

</div>

![icon](https://us1.discourse-cdn.com/bubble/original/3X/3/b/3b1fe63d995c9e6cbd3bd0fccfdc579fab3a3b2c.png)

I have a condition set to show an icon if a user has posted an event. The icon disappears when user has not posted an event (so far, so good) but I need the hidden group to be completely removed so that the text to the right shifts to the left. Is this possible?

---

<div class="post-metadata">

**Author:** ![cmarchan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cmarchan/32/253062_2.png) [@cmarchan](https://forum.bubble.io/u/cmarchan)\
**Post date:** [June 10, 2021, 2:32pm UTC](https://forum.bubble.io/t/completely-hide-group-when-condition-met/155142/2 "2021-06-10T14:32:46Z")

</div>

Place a clone text on that location and hide both the icon and original text as needed via the condition

Condition all three as needed

---

<div class="post-metadata">

**Author:** ![varshneyandson](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/varshneyandson/32/35218_2.png) [@varshneyandson](https://forum.bubble.io/u/varshneyandson)\
**Post date:** [June 10, 2021, 2:52pm UTC](https://forum.bubble.io/t/completely-hide-group-when-condition-met/155142/3 "2021-06-10T14:52:00Z")

</div>

Without plugins, cmarchan’s suggestion is the winning ticket, basically turn the text into a reusable element and then the desired effect can be had by showing/hiding the reusable text element.

I’ve made a plugin to get the same effect without needing to make a reusable element, it’s private, but if you would like to try it out, you can reply with your app name and I can add it to the plugin’s approved app list (you would then need to manually add the plugin from your app and also make sure the “expose html id” option in settings → general is checked).

Here’s a demo app: [https://b2b-collapse-width.bubbleapps.io/version-test?debug\_mode=true](https://b2b-collapse-width.bubbleapps.io/version-test?debug_mode=true) and viewable editor: [B2b-collapse-width | Bubble Editor](https://bubble.io/page?name=index&id=b2b-collapse-width&tab=tabs-1)

---

<div class="post-metadata">

**Author:** ![cmarchan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cmarchan/32/253062_2.png) [@cmarchan](https://forum.bubble.io/u/cmarchan)\
**Post date:** [June 10, 2021, 2:56pm UTC](https://forum.bubble.io/t/completely-hide-group-when-condition-met/155142/4 "2021-06-10T14:56:32Z")

</div>

No reusable element needed.

Nice plugin functionality btw 😀

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [June 10, 2021, 5:13pm UTC](https://forum.bubble.io/t/completely-hide-group-when-condition-met/155142/5 "2021-06-10T17:13:19Z")

</div>

It’s not working. So, I went back to basics and just tried to make text show/hide with a conditional. But the text always shows, regardless of if an event is active?

 ![Screenshot 2021-06-10 181213](https://us1.discourse-cdn.com/bubble/original/3X/a/a/aa0425b1b9850031820e47d49288a06f86e3b4c5.png)

[https://vdfgfdg.bubbleapps.io/version-test/dashboard?debug\_mode=true](https://vdfgfdg.bubbleapps.io/version-test/dashboard?debug_mode=true)

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [June 10, 2021, 5:21pm UTC](https://forum.bubble.io/t/completely-hide-group-when-condition-met/155142/6 "2021-06-10T17:21:59Z")

</div>

Your text element is visible on page load, AND also when your condition is true. Meaning it’s always visible.

Also, your condition will be true only when there are ZERO events in your entire database, regardless of whether or not the current user has created any, as you haven’t set any constraints on your search (and don’t have any privacy rules on your event datatype).

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [June 10, 2021, 8:54pm UTC](https://forum.bubble.io/t/completely-hide-group-when-condition-met/155142/7 "2021-06-10T20:54:21Z")

</div>

> [@adamhholmes](#):
>
> nd don’t have any privacy rules on your event datatype

Ugh, I keep forgetting about the constraints. Thanks Adam, I’ve fixed this now, although I’ve still not added privacy rules on my event datatype Events will have a public page where everyone can view all events.

---

<div class="post-metadata">

**Author:** ![varshneyandson](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/varshneyandson/32/35218_2.png) [@varshneyandson](https://forum.bubble.io/u/varshneyandson)\
**Post date:** [June 10, 2021, 9:26pm UTC](https://forum.bubble.io/t/completely-hide-group-when-condition-met/155142/8 "2021-06-10T21:26:57Z")

</div>

thank you 😃

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [June 10, 2021, 10:01pm UTC](https://forum.bubble.io/t/completely-hide-group-when-condition-met/155142/9 "2021-06-10T22:01:13Z")

</div>

Appreciate the offer, looks good but I wanted to try and learn the ‘manual’ slower way as I’m learning Bubble from scratch.
