# How to limit new comments to within a time period?

**URL:** <https://community.glideapps.com/t/how-to-limit-new-comments-to-within-a-time-period/29187>\
**Category:** Ask for Help\
**Created:** [July 16, 2021, 5:03pm UTC](https://community.glideapps.com/t/how-to-limit-new-comments-to-within-a-time-period/29187 "2021-07-16T17:03:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nrajesh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nrajesh/32/26699_2.png) [@nrajesh](https://community.glideapps.com/u/nrajesh)\
**Post date:** [July 16, 2021, 5:03pm UTC](https://community.glideapps.com/t/how-to-limit-new-comments-to-within-a-time-period/29187/1 "2021-07-16T17:03:06Z")

</div>

For an events app, can I limit the comments to within say N number of days after the event? So while the comments are still visible, new comments cannot be added after the Nth day.

---

<div class="post-metadata">

**Author:** ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)\
**Post date:** [July 16, 2021, 5:20pm UTC](https://community.glideapps.com/t/how-to-limit-new-comments-to-within-a-time-period/29187/2 "2021-07-16T17:20:45Z")

</div>

Yes of course. You’ve to know the use of the Math Column; math can work with date too.  
So in the math column you can calculate the Nth day and then, thanks to an If Then Else Column, you can check.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [July 16, 2021, 5:42pm UTC](https://community.glideapps.com/t/how-to-limit-new-comments-to-within-a-time-period/29187/3 "2021-07-16T17:42:08Z")

</div>

Well, I don’t think that would work with a comments component since comments are handled internally. At most you could hide the comments component, but then you wouldn’t see any existing comments.

The only options I can think of would be to build your own comments system, which would eat up rows, or if it’s a google sheet based app, then duplicate the app:comments sheet and display them as a list in the app. But that would also eat up rows.

---

<div class="post-metadata">

**Author:** ![nrajesh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nrajesh/32/26699_2.png) [@nrajesh](https://community.glideapps.com/u/nrajesh)\
**Post date:** [July 16, 2021, 6:12pm UTC](https://community.glideapps.com/t/how-to-limit-new-comments-to-within-a-time-period/29187/4 "2021-07-16T18:12:56Z")

</div>

Would be good to have an “accepting comments” checkbox.  
Right now comments can be entered by anyone using an email. This could potentially be abused by a bot. Wondering if there is an additional layers like captcha.

Unless, internally the glide infra already implements some type of session rate limiter.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [July 16, 2021, 9:23pm UTC](https://community.glideapps.com/t/how-to-limit-new-comments-to-within-a-time-period/29187/5 "2021-07-16T21:23:21Z")

</div>

I think the comments component is pretty basic in it’s current form. Basically what you see is what it is.

---

<div class="post-metadata">

**Author:** ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)\
**Post date:** [July 16, 2021, 9:43pm UTC](https://community.glideapps.com/t/how-to-limit-new-comments-to-within-a-time-period/29187/6 "2021-07-16T21:43:45Z")

</div>

I’m sorry @nrajesh , I didn’t understand you were referring to using the comments component.  
🙃
