# Set value for a few custom state in a time

**URL:** <https://forum.bubble.io/t/set-value-for-a-few-custom-state-in-a-time/216669>\
**Category:** Need help\
**Created:** [July 22, 2022, 8:03pm UTC](https://forum.bubble.io/t/set-value-for-a-few-custom-state-in-a-time/216669 "2022-07-22T20:03:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zelftb](https://avatars.discourse-cdn.com/v4/letter/z/a88e4f/32.png) [@zelftb](https://forum.bubble.io/u/zelftb)\
**Post date:** [July 22, 2022, 8:03pm UTC](https://forum.bubble.io/t/set-value-for-a-few-custom-state-in-a-time/216669/1 "2022-07-22T20:03:23Z")

</div>

Hi. Im trying to reset custom states for different elements in a time. Is it possible? I have a page with different elements. They all have 2 different conditionals depends on custom state they have. I want to reset all this custom states to default when I’m leaving the page.

---

<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:** [July 22, 2022, 8:04pm UTC](https://forum.bubble.io/t/set-value-for-a-few-custom-state-in-a-time/216669/2 "2022-07-22T20:04:48Z")

</div>

Yes, it’s possible (just put all the set custom state actions into a single workflow)…

But why do you need to reset the custom states if you’re leaving the page?

---

<div class="post-metadata">

**Author:** ![zelftb](https://avatars.discourse-cdn.com/v4/letter/z/a88e4f/32.png) [@zelftb](https://forum.bubble.io/u/zelftb)\
**Post date:** [July 22, 2022, 9:42pm UTC](https://forum.bubble.io/t/set-value-for-a-few-custom-state-in-a-time/216669/3 "2022-07-22T21:42:40Z")

</div>

Yes I did this just thought it could be done without creating dozens of actions in a single workflow).  
When a user do some actions on the page it makes visible some input forms than when the user leave this page and then come back later this forms still there but I want to make them invisible again like show basic page.

---

<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:** [July 22, 2022, 9:49pm UTC](https://forum.bubble.io/t/set-value-for-a-few-custom-state-in-a-time/216669/4 "2022-07-22T21:49:47Z")

</div>

Custom state values don’t persist once a user leaves the page… so there’s no need to reset them here (they will be set to their default values one the user returns to the page).

---

<div class="post-metadata">

**Author:** ![zelftb](https://avatars.discourse-cdn.com/v4/letter/z/a88e4f/32.png) [@zelftb](https://forum.bubble.io/u/zelftb)\
**Post date:** [July 23, 2022, 2:49am UTC](https://forum.bubble.io/t/set-value-for-a-few-custom-state-in-a-time/216669/5 "2022-07-23T02:49:23Z")

</div>

I’m trying to do a native app, so It’s all in one page with different groups. I’m saying page but I mean group)

---

<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:** [September 30, 2022, 8:03pm UTC](https://forum.bubble.io/t/set-value-for-a-few-custom-state-in-a-time/216669/6 "2022-09-30T20:03:33Z")

</div>

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