# \[Question\]How to prevent user fast clicking to generate multiple entries in database

**URL:** <https://forum.bubble.io/t/question-how-to-prevent-user-fast-clicking-to-generate-multiple-entries-in-database/8059>\
**Category:** Database\
**Created:** [November 21, 2016, 9:45am UTC](https://forum.bubble.io/t/question-how-to-prevent-user-fast-clicking-to-generate-multiple-entries-in-database/8059 "2016-11-21T09:45:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sinyongng](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@sinyongng](https://forum.bubble.io/u/sinyongng)\
**Post date:** [November 21, 2016, 9:45am UTC](https://forum.bubble.io/t/question-how-to-prevent-user-fast-clicking-to-generate-multiple-entries-in-database/8059/1 "2016-11-21T09:45:53Z")

</div>

How to prevent user fast clicking to generate multiple entries in database?

Currently user able to spam button click to generate multiple record in database, anyone wanna share their methods here? 🙂

---

<div class="post-metadata">

**Author:** ![andrewgassen](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/andrewgassen/32/44248_2.png) [@andrewgassen](https://forum.bubble.io/u/andrewgassen)\
**Post date:** [November 21, 2016, 11:54am UTC](https://forum.bubble.io/t/question-how-to-prevent-user-fast-clicking-to-generate-multiple-entries-in-database/8059/2 "2016-11-21T11:54:26Z")

</div>

In my apps, there isn’t a scenario where I allow them to make spam updates to the DB. When they have an input filled out, and click “submit,” I clear the input and disable the submit button until the input has something in it again. There are UX tactics used by all apps (not just Bubble apps) to help control this.

What’s your specific use case?

---

<div class="post-metadata">

**Author:** ![mrjohnkilonzi](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mrjohnkilonzi/32/8133_2.png) [@mrjohnkilonzi](https://forum.bubble.io/u/mrjohnkilonzi)\
**Post date:** [November 21, 2016, 1:32pm UTC](https://forum.bubble.io/t/question-how-to-prevent-user-fast-clicking-to-generate-multiple-entries-in-database/8059/3 "2016-11-21T13:32:46Z")

</div>

@sinyongng Assuming its a button that you press for adding of items in the database to occur!. Open the button format, pop op by double clicking on it. Proceed to Conditional , Click define another condition. Choose **When button is pressed** , on condition Choose **This element isn’t clickable** Remember to reset form group data after saving to database too!

---

<div class="post-metadata">

**Author:** ![sinyongng](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@sinyongng](https://forum.bubble.io/u/sinyongng)\
**Post date:** [November 21, 2016, 3:10pm UTC](https://forum.bubble.io/t/question-how-to-prevent-user-fast-clicking-to-generate-multiple-entries-in-database/8059/4 "2016-11-21T15:10:19Z")

</div>

both solution looks promising. thanks!

---

<div class="post-metadata">

**Author:** ![closej402880](https://avatars.discourse-cdn.com/v4/letter/c/57b2e6/32.png) [@closej402880](https://forum.bubble.io/u/closej402880)\
**Post date:** [November 21, 2016, 4:12pm UTC](https://forum.bubble.io/t/question-how-to-prevent-user-fast-clicking-to-generate-multiple-entries-in-database/8059/5 "2016-11-21T16:12:23Z")

</div>

I had the same problem…

Faye showed me a way around this here

> [@Duplicate Data Entered into the database](http://forum.bubble.io/t/duplicate-data-entered-into-the-database/7742):
>
> HI Guys, Im having trouble with duplicate entries in the database. Im using the condition ‘if count is 0’ then create the thing. The problem is that if i repeatedly tap the ‘button’ that triggers the workflow the data is entered twice, seemingly in a gap between the data been added to the data base and the repeated clicks. Im thinking this maybe down to lag between the initial clicks workflow running and the data entering the database. Any ideas of a workaround would be greatly appreciated. T…

---

<div class="post-metadata">

**Author:** ![iwalkisee2017](https://avatars.discourse-cdn.com/v4/letter/i/41988e/32.png) [@iwalkisee2017](https://forum.bubble.io/u/iwalkisee2017)\
**Post date:** [June 25, 2020, 6:35am UTC](https://forum.bubble.io/t/question-how-to-prevent-user-fast-clicking-to-generate-multiple-entries-in-database/8059/6 "2020-06-25T06:35:52Z")

</div>

Same issue here with duplicate entry. The uniqueness is dependent on 2 fields: Event name and users RSVPed. I dont want user to RSVP the same event again. Any help is greatly appreciated…  
I am looking to have 2 button. On page load: Hide one says RSVP and show Registered, if the user has RSVPed already for that event.

---

<div class="post-metadata">

**Author:** ![iwalkisee2017](https://avatars.discourse-cdn.com/v4/letter/i/41988e/32.png) [@iwalkisee2017](https://forum.bubble.io/u/iwalkisee2017)\
**Post date:** [June 25, 2020, 6:55am UTC](https://forum.bubble.io/t/question-how-to-prevent-user-fast-clicking-to-generate-multiple-entries-in-database/8059/7 "2020-06-25T06:55:13Z")

</div>

\*\*\*\*\*Sorry found the solution here (from evanlitttle):

Create a new contact

Only when

Do a search for contact

Add new constraint

Name = input contact name’s value (wherever you have this new contact name)

Add new constraint

Company name = input company name’s value (wherever the new company name is being added)

Now this search must be

:First item is empty . Thus this contact doesn’t already exist so The programs goes ahead to create the contact because it’s not a duplicate
