# Book a soccer pitch⚽📅

**URL:** https://community.glideapps.com/t/book-a-soccer-pitch/50921
**Category:** Ask for Help
**Created:** [October 5, 2022, 12:59pm UTC](https://community.glideapps.com/t/book-a-soccer-pitch/50921 "2022-10-05T12:59:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Thel93210](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thel93210/32/21926_2.png) [@Thel93210](https://community.glideapps.com/u/Thel93210)
#### Post date: [October 5, 2022, 12:59pm UTC](https://community.glideapps.com/t/book-a-soccer-pitch/50921/1 "2022-10-05T12:59:20Z")

</div>

Hey guys,  
On my app, a sports Complex has multiple soccers pitches.  
This pitches can be booked.  
Pitches are available 7/7 from 10 AM to 12pm  
I would like to allow my users to book pitches inside my app.  
It means i need to show only available date then available time.  
This data will be a choice component right ? If yes, how do I put this data, on my data editor ?  
Currently, I have a row per complex

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/c/fce35c48e8c02abde888997644ed8627d59d5470.png)

Duration of a booking can be 1h 1h30 or 2h

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [October 6, 2022, 12:21am UTC](https://community.glideapps.com/t/book-a-soccer-pitch/50921/2 "2022-10-06T00:21:55Z")

</div>

You will have a crazy amount of available choices if you’re using a choice component.

I think an event picker is better for this case, but that doesn’t reduce the complexity of it. You will likely have to do a combination of the things listed below:

- [Use a custom form](https://community.glideapps.com/t/how-do-i-create-a-custom-form/25014).
- Have an event picker to allow users to choose a duration for their booking.
- Have some validation checkers here: Whether the start time is in the allowed time frame, whether the end time is in the allowed time frame, and whether it overlaps with any other existing bookings.
- If all those conditions are satisfied, have a button to add a row to your bookings table.

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [October 6, 2022, 12:35am UTC](https://community.glideapps.com/t/book-a-soccer-pitch/50921/3 "2022-10-06T00:35:16Z")

</div>

something like that? 🙂

> **[Schedule Appointment](https://schedule-appointment.glideapp.io)**
>
> Schedule paid appointments

Schedule paid appointments, for Google Meet, get calendar reminders, block booked dates and time slots, duration auto adjust to booked time slots, custom stripe checkout

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)
#### Post date: [October 9, 2022, 8:10am UTC](https://community.glideapps.com/t/book-a-soccer-pitch/50921/4 "2022-10-09T08:10:22Z")

</div>

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