# Help with a Calendar App

**URL:** https://community.glideapps.com/t/help-with-a-calendar-app/63804
**Category:** Ask for Help
**Created:** [July 12, 2023, 9:27am UTC](https://community.glideapps.com/t/help-with-a-calendar-app/63804 "2023-07-12T09:27:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ma1101](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@ma1101](https://community.glideapps.com/u/ma1101)
#### Post date: [July 12, 2023, 9:27am UTC](https://community.glideapps.com/t/help-with-a-calendar-app/63804/1 "2023-07-12T09:27:37Z")

</div>

Hello, I am working on a Calendar website to help people book volunteering opportunities.

I was wondering if someone can help me solve the below problem:

When charities add a new event to their calendar. We would like to give them the option of ‘repeat on this day for the next 4 weeks’

The toggle is set up but the back-end hasn’t been worked out yet.

Find out whether this is possible.

You will need the toggle to auto-fill dates and create 4 new rows in the Event\_id table.

**Example:**

Charity creates an event on Friday 14 July. The event is happening every Friday for the next 4 weeks. So they select “repeat event for 4 weeks” and submit.

When they submit we know for sure 1 new row will be created - for the 14 July. But we’ll need 3 more rows auto-populating the dates for 21/07/2023, 28/07/2023… and so on.

---

<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: [July 13, 2023, 12:24am UTC](https://community.glideapps.com/t/help-with-a-calendar-app/63804/2 "2023-07-13T00:24:21Z")

</div>

I think I would do this 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 particula…

- Use an entry to fill the “first week” column.

- Create 3 math columns called “2nd week”, “3rd week”, “4th week”.

2nd week formula: “First week” + 7  
3rd week formula: “First week” + 14  
4th week formula: “First week” + 21

- Add a switch pointing to a boolean column to store the “Repeat event for 4 weeks” value.

Then on the Submit button, have 2 branches.

If “Repeat event for 4 weeks” is checked \> Use 4 add row actions to iteratively add 4 rows with the corresponding “First week”, “Second week” and so on.

If the column above is not checked \> Just add 1 row with the “First week” value.

---

<div class="post-metadata">

### Author: ![Official\_Giop](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/official_giop/32/56387_2.png) [@Official\_Giop](https://community.glideapps.com/u/Official_Giop)
#### Post date: [July 13, 2023, 8:40am UTC](https://community.glideapps.com/t/help-with-a-calendar-app/63804/3 "2023-07-13T08:40:37Z")

</div>

Hi, how do you deal with a timeslot already booked ? (if any)
