# How to Set Capacity Limits for Reservations

**URL:** <https://forum.adalo.com/t/how-to-set-capacity-limits-for-reservations/13472>\
**Category:** Get Help\
**Created:** [June 7, 2021, 1:52am UTC](https://forum.adalo.com/t/how-to-set-capacity-limits-for-reservations/13472 "2021-06-07T01:52:56Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![djamison](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@djamison](https://forum.adalo.com/u/djamison)\
**Post date:** [June 7, 2021, 1:52am UTC](https://forum.adalo.com/t/how-to-set-capacity-limits-for-reservations/13472/1 "2021-06-07T01:52:56Z")

</div>

Hello, I am trying to create an app for training classes and have limits on the number of people who can sign up for the class. Once the class is full I do not want it to show up as an option anymore for people to sign up.

I am thinking a filter on a list of classes might work but can’t figure out how to get the total number of signups already paid for on that particular class.  
 ![Screen Shot 2021-06-06 at 6.50.13 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/e/eae8721def3737795b65325e06f64a0961581d23.png)

Does anyone know how to do this or have an alternative way of doing this? Thank you!

---

<div class="post-metadata">

**Author:** ![bhanu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/bhanu/32/6859_2.png) [@bhanu](https://forum.adalo.com/u/bhanu)\
**Post date:** [June 7, 2021, 2:39am UTC](https://forum.adalo.com/t/how-to-set-capacity-limits-for-reservations/13472/2 "2021-06-07T02:39:12Z")

</div>

@djamison you can disable the signup button when the total registration count is equal to or greater than the allowed limit. In order to do this, you can do the following:

1. For each session, have a field with max allowed users.
2. Another field to have Registered users count
3. On the session registration page where you have the button, each time a user registers for the session, add +1 to the registered users count
4. Set visibility condition to the signup button to only show when the registered users count is \<= max allowed count.

As an extra step, you can add another button to show sold out only when all the sessions slot have been booked.

---

<div class="post-metadata">

**Author:** ![djamison](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@djamison](https://forum.adalo.com/u/djamison)\
**Post date:** [June 7, 2021, 3:20am UTC](https://forum.adalo.com/t/how-to-set-capacity-limits-for-reservations/13472/3 "2021-06-07T03:20:00Z")

</div>

I have a lot of classes (15-20 per month) so I do not want the classes to show in the list at all if they are fully booked.

From your feedback I figured out how to keep track of the number of paid registrations on the class by using the +1 formula so now on the class collection it is automatically updating the “Class Signups” column (in the attachment below). The “Class Capacity” column is just a number I enter when I create the class.

 ![Screen Shot 2021-06-06 at 8.05.15 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/3/3b68eed1fea0627565866dcff0578d1cd2b61bc9.png)

Is there now a way to only show classes in a list where the “Class Signups” are less than the “Class Capacity”?

List Filter Screenshot:

 ![Screen Shot 2021-06-06 at 8.13.21 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/4/467396b57b1fcbf3f8e9dbc38d2f12631c76af44.png)

**Below are the steps the user sees and selects to get to a specific list of classes:**

1. Select “Training Signup”  

2. Select the Class Type you want  

3. Select a Specific Class ( **this is where I only want to see classes that are not full** )  

Thank you!

---

<div class="post-metadata">

**Author:** ![bhanu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/bhanu/32/6859_2.png) [@bhanu](https://forum.adalo.com/u/bhanu)\
**Post date:** [June 7, 2021, 3:39am UTC](https://forum.adalo.com/t/how-to-set-capacity-limits-for-reservations/13472/4 "2021-06-07T03:39:13Z")

</div>

In the above filter, did you try

Class signups is less than class capacity?

---

<div class="post-metadata">

**Author:** ![djamison](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@djamison](https://forum.adalo.com/u/djamison)\
**Post date:** [June 7, 2021, 3:44am UTC](https://forum.adalo.com/t/how-to-set-capacity-limits-for-reservations/13472/5 "2021-06-07T03:44:00Z")

</div>

There isn’t an option for that. In the second option where it says “Empty” right now, I can only do a sum or one of the other options in the screenshot. Which I believe is summing up all of the classes capacities, not just the individual class. When I tried one of these options, no classes showed up in the list.

 ![Screen Shot 2021-06-06 at 8.41.14 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/c/c66dd84596a71e95bd893d5a87b7659c81a776e8.jpeg)

 ![Screen Shot 2021-06-06 at 8.42.20 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/8/884b0a70ead1db044428896995855a6c48ceaaa3.jpeg)

 ![Screen Shot 2021-06-06 at 8.42.36 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/1/11f52c1a6b1d60b674af94d62c53b4d1a8f315b7.jpeg)

---

<div class="post-metadata">

**Author:** ![bhanu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/bhanu/32/6859_2.png) [@bhanu](https://forum.adalo.com/u/bhanu)\
**Post date:** [June 7, 2021, 4:03am UTC](https://forum.adalo.com/t/how-to-set-capacity-limits-for-reservations/13472/6 "2021-06-07T04:03:59Z")

</div>

The list you’re trying to filter is different from Training Classes if I understand your screens right.

The fields class signups and class capacity are in “Training Classes” collection, so your filter will work on that collection.

Not sure why you’re using class type list, can you elaborate?

---

<div class="post-metadata">

**Author:** ![djamison](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@djamison](https://forum.adalo.com/u/djamison)\
**Post date:** [June 7, 2021, 4:33am UTC](https://forum.adalo.com/t/how-to-set-capacity-limits-for-reservations/13472/7 "2021-06-07T04:33:45Z")

</div>

I am trying to filter the “Training Classes” Collection.

The user first selects which class type they are interested in, which then shows them a list of classes that are in that type.

From there I am then trying to filter the “Training Classes” to only show classes that are not full.

---

<div class="post-metadata">

**Author:** ![bhanu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/bhanu/32/6859_2.png) [@bhanu](https://forum.adalo.com/u/bhanu)\
**Post date:** [June 7, 2021, 4:58am UTC](https://forum.adalo.com/t/how-to-set-capacity-limits-for-reservations/13472/8 "2021-06-07T04:58:18Z")

</div>

Yup, that’s why you’re not seeing the class signups and class registrations for filtering, because these fields are in Training Classes and not in Class Type.

Can you share your collections structure to understand this better please?

---

<div class="post-metadata">

**Author:** ![djamison](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@djamison](https://forum.adalo.com/u/djamison)\
**Post date:** [June 7, 2021, 5:24am UTC](https://forum.adalo.com/t/how-to-set-capacity-limits-for-reservations/13472/9 "2021-06-07T05:24:23Z")

</div>

Do these screenshots help, or is there another way to see the structure?

 ![Screen Shot 2021-06-06 at 10.22.02 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/d/d47bf017a885b5cdecad093afb55a871d0ce7326.png)  
 ![Screen Shot 2021-06-06 at 10.23.00 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/a/a04321c9305985e0743bef7edbb222232a1a490e.png)  
 ![Screen Shot 2021-06-06 at 10.23.40 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/4/47b8494dcdc141156da300a8534bb4ad05e0fead.png)

---

<div class="post-metadata">

**Author:** ![bhanu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/bhanu/32/6859_2.png) [@bhanu](https://forum.adalo.com/u/bhanu)\
**Post date:** [June 7, 2021, 5:41am UTC](https://forum.adalo.com/t/how-to-set-capacity-limits-for-reservations/13472/10 "2021-06-07T05:41:40Z")

</div>

You could technically combine the Class Types & Training Classes into 1 collection.

I would put class type as an additional field within Training Classes. That makes it easier to filter in various combinations.

Potentially improving performance too.

---

<div class="post-metadata">

**Author:** ![djamison](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@djamison](https://forum.adalo.com/u/djamison)\
**Post date:** [June 7, 2021, 5:58am UTC](https://forum.adalo.com/t/how-to-set-capacity-limits-for-reservations/13472/11 "2021-06-07T05:58:23Z")

</div>

How would I then filter the list of classes to only show certain classes based on what type of class the user is interested in?

---

<div class="post-metadata">

**Author:** ![bhanu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/bhanu/32/6859_2.png) [@bhanu](https://forum.adalo.com/u/bhanu)\
**Post date:** [June 7, 2021, 6:45am UTC](https://forum.adalo.com/t/how-to-set-capacity-limits-for-reservations/13472/12 "2021-06-07T06:45:17Z")

</div>

good question, you could use a drop down list to filter. But let me see if I can do a clone for you, thanks

---

<div class="post-metadata">

**Author:** ![bhanu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/bhanu/32/6859_2.png) [@bhanu](https://forum.adalo.com/u/bhanu)\
**Post date:** [June 8, 2021, 1:08am UTC](https://forum.adalo.com/t/how-to-set-capacity-limits-for-reservations/13472/13 "2021-06-08T01:08:35Z")

</div>

Hey @djamison

Here’s how you can implement the filter and get the result you want.

1. Each time a user register for a training class, update the count of registered users with +1
2. Add another action immediately after the counter increment step to check if the registered users \>= capacity & update the table with True/False (i.e. class is full or not-full)
3. Now, add the filter to your list to show only classes that are not tagged as Full.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/4/43d422d80cf9fd887cccef0fb6bec8fe0f1dff99.png)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/b/b066e8c37f95e299398a90a0935c1f76ba9ce79f.png)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/6/61213f3d7d3384c917f036f33b89c484661707bb.png)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![djamison](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@djamison](https://forum.adalo.com/u/djamison)\
**Post date:** [June 8, 2021, 7:55pm UTC](https://forum.adalo.com/t/how-to-set-capacity-limits-for-reservations/13472/14 "2021-06-08T19:55:35Z")

</div>

Thank you so much! This works!

---

<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:** [June 18, 2021, 7:56pm UTC](https://forum.adalo.com/t/how-to-set-capacity-limits-for-reservations/13472/15 "2021-06-18T19:56:05Z")

</div>

Closed on June 18, 2021, 7:56pm UTC

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