Are All-Day events supported on the calendar?

  • 2
  • Question
  • Updated 2 years ago
  • Answered
I can't find it in the documentation, but are all day events supported on the Skuid calendar? We use these to enter in hours for interns, birthdays, etc.
Photo of Greg Huete

Greg Huete

  • 2,340 Points 2k badge 2x thumb

Posted 5 years ago

  • 2
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Hi Greg,

Currently no, all-day events are not directly supported on the calendar. However there are workarounds. The basic workaround is to create Datetime Formula Fields, or Datetime fields that are populated by a trigger or Workflow Rule, that calculate a Start Datetime and End Datetime based on the all-day Date field. This strategy can be applied to pretty much any object, and generally works pretty well.

With the Salesforce Event object, unfortunately, neither StartDateTime, EndDatetime, or ActivityDate are available in Formula Fields or Workflow Field Updates, so you'll have to create a Trigger if you want to auto-populate custom Datetime fields based on these fields. If you'd like we can share some sample trigger code to help with this.

Zach
Photo of anwaozo

anwaozo

  • 436 Points 250 badge 2x thumb
I am having an issue with the all day events. If a user marks their event as all day the event shows up on the previous day. 

For example if I mark July 4th as an all day event It will show up on July 3rd. It is only with the all day events. Is there a work around for this?

- Adam N
Photo of Karen Waldschmitt

Karen Waldschmitt, Official Rep

  • 8,240 Points 5k badge 2x thumb
Adam~

Please see Matt's response on your other post here: https://community.skuid.com/skuid/topics/calendar-days-are-off

Thanks!
Karen
Photo of anwaozo

anwaozo

  • 436 Points 250 badge 2x thumb
Is there any way I can get some of the sample triggers stated by Zach?

-Adam