Forum Academy Marketplace Showcase Pricing Features

[HOW-TO] Create a custom Calendar using repeating group

Amazing ! thanks - Sorry, if I wanted that to work on the weekly view, how do I need to alter that code?

If I copy the “Main Calendar” and paste it into my app, will it work flawslessly? Or I have other things to do?

Hi Nic, I am receiving the same error, with the day of the calendar empty.

I also receive this error code:

The plugin Toolbox / element Expression threw the following error: SyntaxError: Invalid or unexpected token
at eval (PLUGIN_Toolbox-update–Expression-.js:1:73)
at (please report this to the plugin author)

How can I fix that?

Thank you so much

So far I have tried different code and this looks working perfectly. Thank you guys :slight_smile:

Did you ever get an answer on how to display the weekly calendar to start on the current week (and not the first week of the month)?

This thing is just amazing. I believe I just found a way to block date ranges in this custom calendar. Very useful for me. A big thanks. Zero cash spent is a plus :ok_hand:

1 Like

Hi @maxime.rb

I’m curious whether you managed to do this in the end?


1 Like

Just in case somebody needs a Weekly View - starting monday - with 5 days

  • starting mondays (see first bold text) -> this will change the first day of the week
  • with 5 days (see second bold text) -> changing this value will change the number of days

hope it helps, thanks for sharing this tutorial, very helpful!

this is the code
function getDaysInWeek(e,t){var a=new Date(e,0,1);a.setDate(a.getDate()+7*(t-1));var D=a.getDay()-1;for(s=0;s<D;s++)a.setDate(a.getDate()-1);for(var n=new Date(a),r=[],g=[],s=0;s<5;s++)r.push(n.getDate()),g.push(new Date(+n)),n.setDate(n.getDate()+1);return g}


Hi there,

This is an example how to set the state weekOffset to 0 without having to update anything in the javascript. Hope it helps!

Does anyone have help to offer for newbies trying to replicate the basic funtioning of say Full Calendar?

I have followed the original tutorial and managed to build the basic calendar.

However I need help with creating/displaying events.

Can anyone help?



Thank you for sharing :slight_smile:
Is somebody has solved the issue with the date picker for the week calendar ? when I select 01/07/2021 it shows me the last week.

Kinds regards,

Did you ever figure out a way to keep events on the same line (or RG Index) and clickable??

Hey @joe.brown - did you ever find a fix for this? I’m dealing with the same issue where my numbers didn’t show correctly.

Hi, I need help to move my events with a drag n drop group,
I have linked my google calendar data with my calendar but I can’t find how to make my event change date when drop in a “drop area” over another date…


I am stuck on how i can display the correct hour filled in and stored in the database.
Can somebody help me or point me to the right place?

I don’t see the unique id for the hour_registration database, only see current cell or index.

The idea here is to store the daycare hours per date and child.
Input is working, but now i want to retrieve the data to show the al ready filled in hours.

Thanks for any help!

Thank you so much. This helps a lot.

At the moment I am having trouble finding the Toolbox Expression to display hour slot in the repeating group of Days in Week.

This is my post, for more information:

Please, let me know if there is way to display hour block of the day. Or there is an alternative for that without using Toolbox.

Thank you

Hello! I would be happy to have such tutorials! Also I’m interested at horisontal weekly scrolling calendar. Like in mobile apss.

How do I display only 31 days of a calendar and not a preview of the next month?

That depends on what setup you using to get the calendar days in the first place.

I have things setup in my template on the ‘Google Calendar Clone’ portion that shows the full page calendar to omit any entries or rows that are not part of that month…so if month only has enough days to fill 5 rows, it shows 5 and if 6 are needed it shows 6 rows.

I only use free plugins or karmaware plugins in my templates, so in this case I am using the CalendarTools plugin to get the dates.

Here is the conditional I use to hide or show the 6th row

Screen Shot 2021-03-23 at 1.33.54 PM

On other custom calendars in the template I use different conditionals

Screen Shot 2021-03-23 at 1.36.01 PM

Screen Shot 2021-03-23 at 1.35.18 PM

Different situations require different setups and the starting point is to know how you are getting the dates…then the conditional requires to know how to ‘hide’ or ‘show’ the dates.

I was hitting this issue before as well and you can use conditionals to try and do this.

To come up with a good solution though I added a Calendar Dates element in this plugin which retrieve the Dates up until the end of the month so that you can use a ‘Full List’ repeating group instead of a set number grid and having an extra row sometimes.

To see what I mean checkout this Editor and scroll closer to the bottom and it shows everything: