# Automatically Resetting Data

**URL:** <https://forum.bubble.io/t/automatically-resetting-data/164112>\
**Category:** Need help\
**Created:** [August 11, 2021, 3:34am UTC](https://forum.bubble.io/t/automatically-resetting-data/164112 "2021-08-11T03:34:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![muscleengineer98](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/muscleengineer98/32/102245_2.png) [@muscleengineer98](https://forum.bubble.io/u/muscleengineer98)\
**Post date:** [August 11, 2021, 3:34am UTC](https://forum.bubble.io/t/automatically-resetting-data/164112/1 "2021-08-11T03:34:30Z")

</div>

Hey Wonderful Community Members, I want to know how can i automatically reset a data after a specific amount of time.

Use Case : Actually my website has a feature where a person can use a facility once every 24 hour and for that we are letting them to process through a button only once a 24 hour, Once they confirm that it marks the status of use as “YES” so if that is yes i made the button non-accessible. But now after 24 hours i want that status to be automatically to be “NO” so that the button can again become accessible.

what should i do for that, please do guide me through this.

---

<div class="post-metadata">

**Author:** ![blurapps](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/blurapps/32/102380_2.png) [@blurapps](https://forum.bubble.io/u/blurapps)\
**Post date:** [August 11, 2021, 4:41am UTC](https://forum.bubble.io/t/automatically-resetting-data/164112/2 "2021-08-11T04:41:47Z")

</div>

Under the User data type you can have a date-time field ‘validUntil’ that stores when this facility will expire. When the user clicks the button it is changed to 'current date/time:+days 1 , only when validUntil \< current date/time

Now every time the user attempts to use this facility, you can permit them based on the comparison between current time and 'validUntil’s value

---

<div class="post-metadata">

**Author:** ![muscleengineer98](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/muscleengineer98/32/102245_2.png) [@muscleengineer98](https://forum.bubble.io/u/muscleengineer98)\
**Post date:** [August 12, 2021, 3:20am UTC](https://forum.bubble.io/t/automatically-resetting-data/164112/3 "2021-08-12T03:20:41Z")

</div>

I DON’T KNOW WHY BUT THIS VALIDATION IS NOT WORKING, WHEN I REVERSE THE SIGN “\>” THEN IT WAS MAKING BUTTON DISABLE BUT WASN’T SURE WILL IT WORK OR NOT.

do you think recurring event will help this problem?

---

<div class="post-metadata">

**Author:** ![blurapps](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/blurapps/32/102380_2.png) [@blurapps](https://forum.bubble.io/u/blurapps)\
**Post date:** [August 12, 2021, 4:32am UTC](https://forum.bubble.io/t/automatically-resetting-data/164112/4 "2021-08-12T04:32:13Z")

</div>

You should permit the user to use the facility only when validUntil\>current time  
So I think what you were doing was correct.

Yes, a recurring event will work.  
You will however have to add workflows to manage the recurring event.

---

<div class="post-metadata">

**Author:** ![muscleengineer98](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/muscleengineer98/32/102245_2.png) [@muscleengineer98](https://forum.bubble.io/u/muscleengineer98)\
**Post date:** [August 12, 2021, 4:34am UTC](https://forum.bubble.io/t/automatically-resetting-data/164112/5 "2021-08-12T04:34:24Z")

</div>

even when i was using this symbol \> still after that valid time it was not turning back to clickable.

---

<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:** [October 20, 2021, 3:35am UTC](https://forum.bubble.io/t/automatically-resetting-data/164112/6 "2021-10-20T03:35:04Z")

</div>

Closed on October 20, 2021, 3:35am UTC

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