Services Plugins FAQs

Moving a recurring event in the Air Callendar

Hi,

I find your air calendar plugin very useful and customizable. However, when working with recurring events it is somewhat tricky still.

I have managed to work out most of the quirks of working with the start and end dates and the recurring days etc, and it creates the event just fine. I even manage to move the event within the day. But for moving an event from the original weekday to another day by moving a single occurrance of the event I have not yet found a good workaround. I update the recurring_weekdays field with the new weekday, but I can’t figure out a way to calculate the new start_date to the date of this weekday in original week.

Also, one more question: I found in a post from Nov '24 that there is supposed to be a “Event Duration” parameter on the element, but I can’t find it. Has it been removed? There is no Event Duration paramater under Default duration in my editor at least. It would be exteremely helpful for my use case.

Best regards,
Mikael

image

Hi @mikaelrh ,

Thanks for reaching out.

Regarding the Event Duration parameter – there was a logic change implemented on November 21, 2024. The duration of recurring events is now calculated automatically from the start and end time of the event, taking into account transitions to the next day. The ‘duration_recurring’ field is no longer used, which is why you’re not seeing that parameter in the editor anymore.

As for moving a single occurrence of a recurring event to a different weekday and calculating the new start_date – here’s a potential approach you could explore:

When you drag an event to a new day, you’ll get the new date from the calendar. You could:

  1. Calculate the difference in days between the original weekday and the new weekday (e.g., if moving from Wednesday to Friday, that’s +2 days)
  2. Apply this difference to your original start_date to get the new start_date
  3. Update the recurring_weekdays field to include the new weekday

For example, if your event was originally on day 3 (Wednesday) of the week and you move it to day 5 (Friday), you’d add 2 days to the start_date. Bubble’s date manipulation functions like “+days” should help with this calculation.

That said, our support primarily focuses on bug identification and fixing rather than assisting with custom development scenarios. I’d recommend checking out our community forum where you might find similar use cases or get advice from other developers who’ve tackled similar challenges.

If you believe you’ve encountered a bug with the plugin’s core functionality, please let us know and we’ll be happy to investigate.

Best regards,
Support Team
Browse all Zeroqode Plugins for bubble
Banner_Last3