# Hide button forever

**URL:** <https://forum.bubble.io/t/hide-button-forever/147599>\
**Category:** Need help\
**Created:** [April 22, 2021, 12:34pm UTC](https://forum.bubble.io/t/hide-button-forever/147599 "2021-04-22T12:34:11Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![FelipeChanfrone](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/felipechanfrone/32/71296_2.png) [@FelipeChanfrone](https://forum.bubble.io/u/FelipeChanfrone)\
**Post date:** [April 22, 2021, 12:34pm UTC](https://forum.bubble.io/t/hide-button-forever/147599/1 "2021-04-22T12:34:11Z")

</div>

I need the button of the repeated group to disappear and no longer appear in that group once it is pressed, can I do this with “set states”?

---

<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:** [April 22, 2021, 12:37pm UTC](https://forum.bubble.io/t/hide-button-forever/147599/2 "2021-04-22T12:37:41Z")

</div>

It depends what you mean by forever…?

States only exist on the page, so you can hide a button on the page using states, but when the page is refreshed or revisited, it will re-appear.

If you want to hide it beyond the particular browsing session then you’ll need to either use the database, or cookies (depending on the use case).

---

<div class="post-metadata">

**Author:** ![anon26152888](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@anon26152888](https://forum.bubble.io/u/anon26152888)\
**Post date:** [April 22, 2021, 12:38pm UTC](https://forum.bubble.io/t/hide-button-forever/147599/3 "2021-04-22T12:38:00Z")

</div>

You can do this through workflows I believe using element actions to hide an element.

---

<div class="post-metadata">

**Author:** ![anon26152888](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@anon26152888](https://forum.bubble.io/u/anon26152888)\
**Post date:** [April 22, 2021, 12:38pm UTC](https://forum.bubble.io/t/hide-button-forever/147599/4 "2021-04-22T12:38:25Z")

</div>

Yes agreed.

---

<div class="post-metadata">

**Author:** ![FelipeChanfrone](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/felipechanfrone/32/71296_2.png) [@FelipeChanfrone](https://forum.bubble.io/u/FelipeChanfrone)\
**Post date:** [April 22, 2021, 3:02pm UTC](https://forum.bubble.io/t/hide-button-forever/147599/5 "2021-04-22T15:02:46Z")

</div>

What kind of data should I store so that the button disappears

---

<div class="post-metadata">

**Author:** ![FelipeChanfrone](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/felipechanfrone/32/71296_2.png) [@FelipeChanfrone](https://forum.bubble.io/u/FelipeChanfrone)\
**Post date:** [April 22, 2021, 3:03pm UTC](https://forum.bubble.io/t/hide-button-forever/147599/6 "2021-04-22T15:03:02Z")

</div>

I am going to try

---

<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:** [April 22, 2021, 3:09pm UTC](https://forum.bubble.io/t/hide-button-forever/147599/7 "2021-04-22T15:09:31Z")

</div>

You can just have a yes/no field on the User, or on the Rg datatype (depending exactly what it is you’re doing) for ‘Show Button’ or whatever it is you need.

It can be set to Yes by default, and set to No once it’s been pressed, with a conditional on the Button to only be visible if that particular thing’s Show Button value is yes.

If you need the show/hide status of each thing’s button to be different for each individual user then you’ll need to have a separate datatype (something like ‘buttons to show’) connected to each thing and each user, with a yes no field for ‘Show Button’, and use that to set up your conditionals on the button in the Rg.

---

<div class="post-metadata">

**Author:** ![draked123](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/draked123/32/262422_2.png) [@draked123](https://forum.bubble.io/u/draked123)\
**Post date:** [April 22, 2021, 3:18pm UTC](https://forum.bubble.io/t/hide-button-forever/147599/8 "2021-04-22T15:18:51Z")

</div>

Its hard to understand exactly what you are trying to accomplish.

Do you mean only press once per page load, or only press once, at all?

#### Per Page

If you want to do it per page load, this is pretty easy. Actually, both is easy.

When button is pressed \> Hide an Element \> Button A

#### Permanently

Create a data field under user, call it whatever. Im going to call it “Button Pressed”

Create a conditional on the button:

If Current User’s Button Pressed is yes  
Element visible on page load: No

If Current User’s Button Pressed is no  
Element visible on page load: Yes

Bam, done.

Hope I helped!

| 

![](https://d1muf25xaso8hp.cloudfront.net/https%3A%2F%2Fs3.amazonaws.com%2Fappforest_uf%2Ff1617742045020x562681532093823000%2FBAK5YaP.png?w=192&h=146&auto=compress&fit=crop&dpr=1)

 | 

📛 `Drake Dussault`  
🔗 [https://afterthought-system.com/](https://afterthought-system.com/)

 |
| --- | --- |

---

<div class="post-metadata">

**Author:** ![FelipeChanfrone](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/felipechanfrone/32/71296_2.png) [@FelipeChanfrone](https://forum.bubble.io/u/FelipeChanfrone)\
**Post date:** [April 22, 2021, 3:21pm UTC](https://forum.bubble.io/t/hide-button-forever/147599/9 "2021-04-22T15:21:14Z")

</div>

Show !!! That was the logic that I was not able to reach, thank you very much man!!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [July 1, 2021, 12:34pm UTC](https://forum.bubble.io/t/hide-button-forever/147599/10 "2021-07-01T12:34:29Z")

</div>

Closed on July 1, 2021, 12:34pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
