Note: Nintex Apps data centers are located in West US and Australia (AUS). In-region processing of Nintex Apps data is only available in these regions.
Calendar
The Calendar component allows you to display a calendar with events and tasks from one or more sources on a Nintex Apps page. Builders can permit users to add, edit, or delete calendar events.
Using the Calendar component
To create a calendar and fill it with the events drawn from a linked connection, you need to manage two aspects of calendar creation:
-
Event sources: This is a model on a connection where calendar information is stored. Calendars can have more than one event source and display them all on one Calendar component.
Note: Disable the Query on page load property for any models used by the Calendar component. The component itself queries for data—so querying on page load would result in duplicate queries.
-
Views: Calendars come in different formats (month, week, or day calendar pages, or event lists); in similar fashion, the Calendar component can display month, week, and day views, as well as a list of events. Configure each of these views to suit your preferences.
Working with event sources and views lets you customize calendars that address end users' unique needs.
Assumptions
Start with a Nintex Apps page that includes a model on an object with scheduling information. Models must include a start date (or datetime). Be sure to add event fields to the model (such as start and end date or datetime fields).
Note: Thinking of reusing a model employed elsewhere on the page? Nintex recommends using a separate model for the Calendar component. If you want another component on the page to interact with the same object as the Calendar's model, it's tempting to re-use the model, but doing so may result in unexpected behavior. Create a separate model instead.
Create a Calendar
Add a Calendar component to the page. If you save and preview, you'll immediately see the calendar on the page—empty (without any events). Now customize and configure:
-
In the General tab, set the Calendar's Valid date range property and (depending on which value you choose) any associated properties.
-
In the Sources tab, add at least one event source and configure it:
Note:Need to add more than event source? Add another one and configure. Take a look at the Source tab for best practices.
- Be sure to set the Name, Start, and End fields.
- Configure the on-click action included in the event source so that when users click on an event, Nintex Apps opens a modal with event details.
- If you want users to be able to create new events, configure the create event action included in the event source.
-
Customize the calendar's Views: You'll need to have at least one view available—or you can have all four available, allowing the user to toggle between them.
Note: Week and Day view also allow you to group events, an option that may be helpful for your end users.
Working with the Calendar
Time is endless, stretching backward and forward into infinity. Unless you're in a Nintex Apps Calendar, where time is finite and covers specific times that fit between two parameters: start and end.
In Nintex Apps's calendar component, there are three places where you define these start and end parameters:
- In the General tab: The Valid date range property defines the range of dates that will display in the calendar.
- In the Sources tab: Each event source's Start field and End field properties determine what field is used to define the start time and end time of individual events.
- In the Views tab: In Week view and Day view, the Default start time and Default end time properties determine the time parameters of the calendar's display, defining the first time entry indicated on the calendar day, and the last one.
To combine events from multiple event sources onto a single calendar, add and configure additional sources in the Sources tab.
- Create a new model for each source and include the appropriate event fields in the model.
- To make sure events from different event sources are visually distinguishable, consider selecting a distinct Background color for each new source.
- Configure separate event actions for the new event source.
If using multiple event sources, when users create new events, they will be asked to select which event source the event should be saved to.
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
Divide individual days (in Day or Week view) into lanes with groupings.
Group options are set in the Event source tab — where you set the field to group by — and in the View tab, under the Week and Day sections — where you determine how the groups display.
Note: If grouping by field values from another object, then select the reference field for the Grouping field on the event source. This tells the Calendar where the values for grouping will come from. Set the specific values for grouping in the Grouping template property under View > Week or Day.
End user experience
Once configured, the calendar lets users view and interact with the events.
-
From the top of the calendar:
- The Today button moves the calendar to the current date.
- When multiple views are available, switch between viewing the calendar by month, week, or day using the view toggle.
- Navigate between months ( Month view ), weeks ( Week view ), or days ( Day or List view ) using the date toggle.
-
Click on an event to view its details.
- When interacting with a Calendar on a mobile device, click and hold to view an event.
-
Drag and drop events to a new location on the calendars. This will change the event's date and time accordingly.
-
Drag and drop start times and end times for events ( Day and Week views).
-
The following features can also be enabled for end users in the Page Designer:
- Click on an empty space with the calendar to create a new event.
- Click on an event to edit it.
- Delete an event.
Create a new event
If end users have permission to create a new event, they can do one of the following:
- In Month view: Click on the day in the calendar.
- In Week or Day view: Click on the day and time on the calendar.
Nintex Apps opens the New event modal. Users enter information for the new event, then click Create.
If there is more than one event source, Nintex Apps will ask the end user to specify which source to create the event in.
Component actions
Component actions are available using Run component action.
Event Source actions
-
Event Source: The event source that contains the event action.
- On-click: Accesses the event source action that allows users to view or edit that event's details.
- Create event: Accesses the event action that allows the user to create a new event.
Note: Both On-click and Create event require that these actions already exist on the event source in the Calendar component.
Go to date
Navigates to a date in the calendar. When run, the action will navigate to the date selected ( Day and List view); the week containing the date ( Week view); or the Month containing the date ( Month view).
-
Date type:
-
Specific date: Use the date selector to choose the desired day.
-
Result of a formula:
- Formula context model (optional): Establish context for the formula by selecting the model being referred to with merge syntax.
- Formula: In this field, use merge syntax as well as Nintex Apps's formula functions to dictate the date.
-
Select view
Displays the calendar in the specified view.
- Month
- Week
- Day
- List
Note: The selected view must exist within the calendar.
Properties
Component properties
-
Remember user's last date: If checked, remembers the last date the end user was on, and returns to that date the next time the user accesses the calendar.
-
Remember user's last view: If checked, remembers the last calendar view (month, week, day) selected, and returns to that view the next time the user accesses the calendar.
-
Unique ID: Nintex Apps automatically generates an alphanumeric Id for the component; if preferred, give it a practical name.
-
Valid date range: Configures the calendar to display dates only within a specified range. Options include:
-
None
-
Specific dates and times:
- Start Date: The start of the date range.
- End Date: The end of the date range.
-
Dynamic date range: Nintex Apps establishes a range of dates based on a specific date or by formulas, including Now, This week and others.
-
Use fields from model: The model the events will be pulled from. This model's date fields are used for the next two properties.
Important:Do not use an event source model to create this date range. Selecting a source model will surface start and end dates from the model's first record and use them as the global range.
- Start Date: Select start date field for the calendar using the field picker.
- End Date: Select the end date field for the calendar using the field picker.
-
A source is the collection of event and activity data pulled from a model for the calendar.
The following properties determine where the calendar events will source from, how they will display to the end users, and how much control users have over events.
To add event sources, click
Add event source next to Event sources and configure.-
Model: The model the events will be sourced from.
-
Source name: A practical name for the event source. This is helpful when pulling in calendar events from more than one source.
-
Event title field: ( Required ) The field to use for the event's title. Select using the field picker.
-
Date field type: Select which type of date fields are used for the Start field and End field (below):
-
Start/end date and time
-
All-day field: The field that designates whether an event lasts the enter calendar day. Select using the field picker.
Note: The Calendar only accepts checkbox or boolean fields fields for this property.
-
Start field and End field: ( Required ) The fields that contain an event record's datetime information. Select using the field picker.
-
-
Start/end date
- Start field and End field: ( Required ) The fields that contain an event record's date information. Select using the field picker.
-
Single date
- Date field: ( Required ) The field that contains an event record's date information. Select using the field picker.
-
-
Grouping field: The field to group events by in the Day or Week views. Select using the field picker.
-
Event template: The text that displays for the event in the calendar grid.
Note: You can only select fields that have already been added to the model.
-
Allow HTML: If checked, any HTML markup within the Event template field value will be parsed and rendered per the markup.
-
Color Format: The color events this source uses when displayed on the calendar. Accepts any HTML compatible color.
-
Single specific value: Sets a specific color for events on the calendar using the color picker. (You can also type in the HEX code—for example, #123466 —for the color.)
- Color: The HEX code for the selected color.
-
Result of template: Determine event colors using a formula. This option allows the builder to set different colors for different event categories—for example, to color-code events from different creators.
- Color: The field or template that returns a HEX code.
-
Once a source is created, you can determine what happens when a user clicks on a date or an event, or when a user moves or adjusts an event in the calendar.
Note: Who has permission to create or edit events? Components will always yield to the connection permissions the end user has related to an object. End users that previously did not have access to an object still cannot edit those objects within Nintex Apps.
-
Interaction type:
- On-click: Determines what occurs when a user clicks an event within the Calendar. Defaults to showing a modal that displays the event's details. This can also be triggered by a Calendar component action through the Action Framework.
- Create event: Determines what occurs when a user tries to create an event by clicking an empty space in the Calendar grid. This can also be triggered by a Calendar component action through the Action Framework.
- Event update: Determines what occurs when a user modifies an event by dragging and dropping it to a new date or time.
-
Interaction name (optional): Nintex Apps automatically generates an alphanumeric ID for the On-click and Event update actions; if preferred, give the action a practical name.
Additional event actions
The Calendar component automatically includes default on-click and create event actions, but if you want to add additional actions—or use the Calendar actions in an action list—click
Add action on the event and then configure.You can also trigger Calendar actions elsewhere on the page.
Click
Add action, then select:- Action Type: Use the Action Framework to launch actions.
These properties determine how month, week, and day views, as well as the list view, display. The Calendar component automatically includes one of each of the following view options, ready for configuration.
To add an additional view, click
Add view. In the newly-created view, select its type:-
Type of view: Select the view to configure:
- Month
- Week
- List
- Day
The runtime calendar includes an option to display events in a monthly calendar.
- View name: A practical name for the view.
- Hide weekends: If checked, Nintex Apps hides Saturday and Sunday from the calendar.
- Enable dragging/dropping of events: If checked, allows end users to drag and drop events to a new location within the calendar, updating their date and/or time.
- Max events per cell: Sets the number of events that can be displayed in a single calendar day.
The runtime calendar includes an option to display events in a weekly calendar.
- View name: A practical name for the view.
- Hide weekends: If checked, Nintex Apps hides Saturday and Sunday from the calendar.
- Enable dragging/dropping of events: If checked, allows end users to drag and drop events to a new location within the calendar, updating their date and/or time.
-
Group with lanes: Divides each day of the week into lanes, with each lane representing a unique field value for the field listed in the Grouping template. When enabled, the following properties appear:
-
Grouping model: The model which contains the field to be used as the Grouping template.
-
Grouping template: The field used to divide the view into lanes and then group events into their associated lane category. This is typically a field that functions as an event "category" or other descriptor.
Note: Be wary of using more than one field in this template; each unique field value can create a new lane.
-
Show unassigned group: Determines the visibility of the unassigned group (events that do not have a value for the grouping template fields).
- Only if unassigned events exist (Default)
- Always
- Never
-
Label for unassigned group: The custom label displayed in the Unassigned lane, which appears in lieu of the value that would appear for the Grouping template. Can affect the placement of the lane at runtime if Unassigned group placement is set to Alphabetical.
-
Unassigned group placement: Determines where in the list of groups the unassigned lane will appear.
- Start: The unassigned group lane always appears at the top of all lanes.
- End: The unassigned group lane always appears at the bottom of all lanes.
- Alphabetical: The group is placed where it should be based on where the value of Label for unassigned group falls alphabetically. If that field is blank, the label is alphabetized based on where Unassigned would appear.
- Allow HTML: If checked, allows the builder to use standard HTML markup in the Grouping template.
- Grouping display format: Determines the visual layout of grouping lanes.
- Vertical: Divides groups vertically, with column header at the top of the Calendar indicating the group.
- Horizontal: Divides groups horizontally, with row header on the left of the Calendar indicating the group.
-
- Default start time: The first hour displayed for weekly calendars.
- Default end time: The last hour displayed for weekly calendars.
- Divisions per hour: The number of divisions per hour. Using two divisions (the default) allows scheduling every 30 minutes. Change it to any integer between 1 (hours) or 12 (five minute divisions).
The runtime calendar includes an option to display events in a daily calendar, divided by hours and (if a Grouping Template is used) by categories.
- View name: A practical name for the view.
- Enable dragging/dropping of events: If checked, allows end users to drag and drop events to a new location within the calendar, updating their date and/or time.
-
Group with lanes: Divides each day of the week into lanes, with each lane representing a unique field value for the field listed in the Grouping template. When enabled, the following properties appear:
-
Grouping model: The model which contains the field to be used as the Grouping template.
-
Grouping template: The field used to divide the view into lanes and then group events into their associated lane category. This is typically a field that functions as an event "category" or other descriptor.
Note: Be wary of using more than one field in this template; each unique field value can create a new lane.
-
Show unassigned group: Determines the visibility of the unassigned group (events that do not have a value for the grouping template fields).
- Only if unassigned events exist (Default)
- Always
- Never
-
Label for unassigned group: The custom label displayed in the Unassigned lane, which appears in lieu of the value that would appear for the Grouping template. Can affect the placement of the lane at runtime if Unassigned group placement is set to Alphabetical.
-
Unassigned group placement: Determines where in the list of groups the unassigned lane will appear.
- Start: The unassigned group lane always appears at the top of all lanes.
- End: The unassigned group lane always appears at the bottom of all lanes.
- Alphabetical: The group is placed where it should be based on where the value of Label for unassigned group falls alphabetically. If that field is blank, the label is alphabetized based on where Unassigned would appear.
- Allow HTML: If checked, allows the builder to use standard HTML markup in the Grouping template.
- Grouping display format: Determines the visual layout of grouping lanes.
- Vertical: Divides groups vertically, with column header at the top of the Calendar indicating the group.
- Horizontal: Divides groups horizontally, with row header on the left of the Calendar indicating the group.
-
- Default start time: The first hour displayed for weekly calendars.
- Default end time: The last hour displayed for weekly calendars.
- Divisions per hour: The number of divisions per hour. Using two divisions (the default) allows scheduling every 30 minutes. Change it to any integer between 1 (hours) or 12 (five minute divisions).
If configured, the runtime calendar includes an option to display events in an events list.
- View name: A practical name for the view.
- Hide weekends: If checked, Nintex Apps hides Saturday and Sunday from the calendar.
- Enable dragging/dropping of events: If checked, allows end users to drag and drop events to a new location within the calendar, updating their date and/or time.
- Max events per cell: Sets the number of events that can be displayed in a single list day.
-
Height Strategy: This sets the height for the Calendar component.
-
Fit to content: This sizes the Calendar component.
-
Fixed height: Sets an absolute height for the Calendar.
-
Not specified
-
Short (240px)
-
Medium (480px)
-
Tall (720px)
-
Custom: Uses a custom height.
- Custom height: The height of the Calendar, using a number and a sizing unit.
-
-
Global styles for this component are set in the Design System Studio. The following style properties can be adjusted within an individual page.
-
Style variant: Style variants are created and set in the Design System Studio. Some components have pre-defined variants for a specific aspect of a component's style. Also, Nintex Apps builders can style and customize elements to create their own themes within the DSS. These themes will dynamically populate as selectable values in the Style Variant dropdown menu.
Note:To refresh available style variant options, click
Refresh style variants.This is useful for when changes to the design system (like style variants or variable options) have been made in another browser window or by another user.
-
Margin: Sets a component's margin (the space around it) relative to other components on the page.
- To set margins for all sides, click All.
- To set margins for each side individually, click Separate.
Margin values can be set to any configured spacing variable for the page's design system. Margin cannot be set an arbitrary value; it must use a design system variable.
Standard display logic options are available to display or hide the component or feature.
Troubleshooting
Having problems? Make sure:
- If using the Day or Week view, that the relationship field between the grouping object and the primary event object is included in the primary event object model.
- You've defined the correct actions on the Sources tab for the On-click, Create event, and Event update actions.
- To include at least one view in your calendar.
Still having problems? Post your question on the community
If you create a custom Event template in the Event source, for example {{Subject}}: {{Description}} , , Nintex Apps displays that with a "dangling colon." For example, if there is no content in the {{Description}} for a call record, that displays as " Call: "; one with a description displays as " Call: Bob at Acme."
To get rid of that colon if there's no description in the event, use the a conditional merge syntax expression to conditionally render the event display:
{{Subject}}{{#Description}}:{{Description}}{{/Description}}
This tells Nintex Apps that "If there's a description, show the colon and the description; if no description, no colon."
Setting up a Calendar using standard models is relatively straightforward, but if you need more granular control over the Start dates and End dates for Valid Date Range property (on the General tab) when set to Use Fields from model, use a UI-only model.
- Create a new, UI-only model with two UI-only fields on it, one for the calendar's start date and one for the end date.
- Set the UI-only Start field:
- In the General tab:
- Display Type: Datetime
- In the Default Items tab:
- Content: Single Specified Value
- Value: Specific Date. Enter the correct date in the date field.
- In the General tab:
- Repeat step 2 for the UI-only End field, setting the ending date and time.
- In the Sources tab:
- Model: Use the UI-only model.
- Start field and End field: Use the UI-only fields.