# Calendar component and not allowing entries before a submitted date

**URL:** <https://community.glideapps.com/t/calendar-component-and-not-allowing-entries-before-a-submitted-date/81151>\
**Category:** Ask for Help\
**Created:** [April 3, 2025, 9:46am UTC](https://community.glideapps.com/t/calendar-component-and-not-allowing-entries-before-a-submitted-date/81151 "2025-04-03T09:46:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![LearnandEarn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/learnandearn/32/66237_2.png) [@LearnandEarn](https://community.glideapps.com/u/LearnandEarn)\
**Post date:** [April 3, 2025, 9:46am UTC](https://community.glideapps.com/t/calendar-component-and-not-allowing-entries-before-a-submitted-date/81151/1 "2025-04-03T09:46:06Z")

</div>

Hi!

For my applications i’ve used the calendar component where users can submit a renter for certain times. I’ve some troubles with not allowing entries where the arrival date is after the leave date (so negative dates).

I’ve now input a custom workflow that should check this and delete a record and display an error message if the rule has been broken, but it seems the people who’re stresstesting the application before launching to 200 personal users end of the week keep managing to do this.

It’s setup as follows:

A list collection with the add and edit function above a calendar collection showcasing the entries visually:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/7/57cbe8313d97a0b7d765c468125c1aac8a4d9df2.jpeg)

The add form with the custom workflow hooked up:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/3/23e69543cb90c3fc4ede44607c10253d146ea3cd.jpeg)

workflow with: arrival date is before leave date → else → show error → delete record

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/8/a8fbc5d14e0d5b4950036efb3861c400b2541bc7.png)

As you can see, the workflow steps in after entry, and I would ideally want to display an error message that the dates are not proper in the form submission.

For both date entries I’ve selected “today or later”

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/8/38455f9c2d71b7967f361c84c992f0ae7ad2786c.png)

But for the second entry, leave date, I want to input “Arrival date or later”

Is there a better way to go about it than how I sett it up now?

It works most of the time, but users are still abled to work around the workflow somehow and create records with negative dates.

Please let me know! Thanks

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 3, 2025, 9:51am UTC](https://community.glideapps.com/t/calendar-component-and-not-allowing-entries-before-a-submitted-date/81151/2 "2025-04-03T09:51:45Z")

</div>

> [@LearnandEarn](#):
>
> Is there a better way to go about it than how I sett it up now?

Yes. It’s much better to detect the error before the form is submitted, and prevent the user from adding a row in the first place. You can do that with a Custom Form.

> [@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 particular…

---

<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:** [April 3, 2025, 11:58pm UTC](https://community.glideapps.com/t/calendar-component-and-not-allowing-entries-before-a-submitted-date/81151/3 "2025-04-03T23:58:22Z")

</div>

> **[Prevent Form Submission](https://go.glideapps.com/template/RyEnvpZcpTrYQ9fO0DAd-template-published?privateTemplateToken=XiH3D6fccsdplOOdr4uL)**

An alternative for you is something like this in the Timesheet tab.

 ![CleanShot 2025-04-04 at 06.58.05](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/6/26379692dc5805423f3bfe805135f6ac29b5fcae.png)

---

<div class="post-metadata">

**Author:** ![LearnandEarn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/learnandearn/32/66237_2.png) [@LearnandEarn](https://community.glideapps.com/u/LearnandEarn)\
**Post date:** [April 4, 2025, 8:16pm UTC](https://community.glideapps.com/t/calendar-component-and-not-allowing-entries-before-a-submitted-date/81151/4 "2025-04-04T20:16:41Z")

</div>

Thanks for sharing! Is there a way I can copy the app? That doesn’t seem to work. I saw you mention this in other, earlier posts regarding copying. It now leads me to a forbidden page

---

<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:** [April 5, 2025, 1:46am UTC](https://community.glideapps.com/t/calendar-component-and-not-allowing-entries-before-a-submitted-date/81151/5 "2025-04-05T01:46:45Z")

</div>

Hmm it seems like something [@glide\_help](https://community.glideapps.com/groups/glide_help) has to look into.

---

<div class="post-metadata">

**Author:** ![comm\_support\_agent](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/comm_support_agent/32/84195_2.png) [@comm\_support\_agent](https://community.glideapps.com/u/comm_support_agent)\
**Post date:** [April 5, 2025, 9:55am UTC](https://community.glideapps.com/t/calendar-component-and-not-allowing-entries-before-a-submitted-date/81151/6 "2025-04-05T09:55:07Z")

</div>

I was able to copy the template without issue. @LearnandEarn can you please let me know what browser you’re using that is giving you this issue? Also, if you’re having this issue in a Chromium-based browser, can you please try it in Firefox to see if that works?
