Calendar merge variables allow access to the date/datetime of the selected area—which can be an empty time slot or an existing event:
startDateTime and endDateTime : Return the values for the selected area’s start datetime or end datetime, respectively.
For example, on an event space that represents 5/4/2021 10:00 am to 5/4/2021 10:30 am Eastern Standard Time, the merge variable template
{{startDateTime}} - {{endDateTime}}
would do the following:- Display 5/4/2021 10:00 am - 5/7/2021 10:30 am at runtime
- Set a field value to
2021-05-04T14:30:00.000Z - 2021-05-07T15:00:00.000Z
These merge variables can be used in:
- On-click actions
- Create event actions
- Event update actions
startDate and endDate : Return the values for the selected area’s start date or end date, respectively.
For example, on an event space that represents 5/4/2021 10:00 am to 5/7/2021 10:30 am Eastern Standard Time, the merge variable template
{{startDate}} - {{endDate}}
would do the following:- Display 5/4/2021 - 5/7/2021 at runtime
- Set a field value to
2021-05-04 - 2021-05-07
These merge variables can be used in Create event actions.
allDay: Returns
true
if the selected area/event takes up the full day.- On-click actions
- Create event actions
- Event update actions