# How to add rules/conditions to adding table?

**URL:** https://community.glideapps.com/t/how-to-add-rules-conditions-to-adding-table/49383
**Category:** Ask for Help
**Created:** [September 15, 2022, 5:01pm UTC](https://community.glideapps.com/t/how-to-add-rules-conditions-to-adding-table/49383 "2022-09-15T17:01:11Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [September 16, 2022, 12:19am UTC](https://community.glideapps.com/t/how-to-add-rules-conditions-to-adding-table/49383/2 "2022-09-16T00:19:34Z")

</div>

You would need to use a custom form for that.

> [@How do I create a custom form?](https://community.glideapps.com/t/how-do-i-create-a-custom-form/25014):
>
> I’m just dropping this here so I have something to refer people to when they ask. This is a simple concept app (copyable), that demonstrates the following techniques: Building custom forms for adding and editing list items (as an alternative to the native forms provided by Glide) Preventing duplicate new entries using [User Specific Columns](https://docs.glideapps.com/all/reference/data-editor/user-specific-columns) and [Relations](https://docs.glideapps.com/all/reference/data-editor/computed-columns/relation-column) Enforcing mandatory input items The use of visibility conditions and user specific booleans to control user flow There is nothing particula…

If it’s just a date and not including the time, you can:

- Convert the chosen date to numerical value (say have a math column to convert it to MMDDYYYY).

- Do the same process in the table where you store existing reservations.

- Create a relation from the chosen date’s numerical value to the existing reservation dates’ numerical values.

- If the relation is not empty, then don’t allow them to add a row.

The process is much trickier when you add the time in, with periods of time.

---

_[View the full topic](https://community.glideapps.com/t/how-to-add-rules-conditions-to-adding-table/49383)._
