# A bid function for auction

**URL:** <https://forum.adalo.com/t/a-bid-function-for-auction/24210>\
**Category:** Get Help\
**Created:** [March 5, 2022, 3:05am UTC](https://forum.adalo.com/t/a-bid-function-for-auction/24210 "2022-03-05T03:05:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![picolpierre1](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@picolpierre1](https://forum.adalo.com/u/picolpierre1)\
**Post date:** [March 5, 2022, 3:05am UTC](https://forum.adalo.com/t/a-bid-function-for-auction/24210/1 "2022-03-05T03:05:10Z")

</div>

How do i do a aucion app that evertime someone bid it updated the bid amount and it also take the bit out of his account or can someone give me a better idea

---

<div class="post-metadata">

**Author:** ![theadaloguy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/theadaloguy/32/8023_2.png) [@theadaloguy](https://forum.adalo.com/u/theadaloguy)\
**Post date:** [March 5, 2022, 4:29am UTC](https://forum.adalo.com/t/a-bid-function-for-auction/24210/2 "2022-03-05T04:29:13Z")

</div>

You could have a bid collection, and then display a list of bids ordered by highest amount first, limited to one result. Then it would display the highest bid.

So each time a user bids, it creates a new ‘bid’ on the database.

Your bid would have a relationship to the auction/item (an auction can have many bids, a bid can only have one auction), and a relationship to which user bidded (a bid can have one user, a user can have many bids).

---

<div class="post-metadata">

**Author:** ![picolpierre1](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@picolpierre1](https://forum.adalo.com/u/picolpierre1)\
**Post date:** [March 8, 2022, 4:08pm UTC](https://forum.adalo.com/t/a-bid-function-for-auction/24210/3 "2022-03-08T16:08:50Z")

</div>

how should the bid collection look and property should it have?

---

<div class="post-metadata">

**Author:** ![theadaloguy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/theadaloguy/32/8023_2.png) [@theadaloguy](https://forum.adalo.com/u/theadaloguy)\
**Post date:** [March 9, 2022, 8:02am UTC](https://forum.adalo.com/t/a-bid-function-for-auction/24210/4 "2022-03-09T08:02:18Z")

</div>

Should at least have an item relationship, user relationship, and an amount.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [March 19, 2022, 8:03am UTC](https://forum.adalo.com/t/a-bid-function-for-auction/24210/5 "2022-03-19T08:03:15Z")

</div>

Closed on March 19, 2022, 8:03am UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
