---
sourceDocument: Brazil Build or modify applications
sourceDocumentLink: https://www.servicenow.com/docs/r/application-development

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Appointment Calendar component setup

# Appointment Calendar component setup {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 9 minutes to read  
The Appointment Calendar component enables you to visualize time-related events in various calendar views.

## Before you begin

This task assumes you have placed the component on the page and are ready to configure the properties and events. For instructions on accessing and using features in UI Builder, see [Customize UI Builder pages using components](https://www.servicenow.com/docs/YMtTz79hYjmj5_kMcObIuA "Learn what a component is in UI Builder. Also, see how components work within UI Builder.").  
Note:  
This document describes the latest component functionality. Go to the store to make sure you have the latest version of the component.

Role required: admin or ui_builder_admin

## Procedure

1. Define a label for your Appointment Calendar that differentiates it from other components in the content tree.  
   A descriptive label makes finding the component easier in a large list of components. For instructions on using the content tree, see [Manage UI pages and page variants](https://www.servicenow.com/docs/Hq7OFdFRjvDFnNsfdtsMGw "Learn what a page is in UI Builder. Understand the building blocks of a UI Builder page, such as column layouts and components.") .

   <br />

2. Select the Appointment Calendar component, using one of these methods:
   * Click anywhere within the component on the page.
   * Select the Appointment Calendar label that you created for your component in the content tree.

   {#appointment-calendar-component-uib-setup__choices_dtz_td4_knb}  
   The properties appear in the Config tab in the setup panel on the right.
{#appointment-calendar-component-uib-setup__steps_ctz_td4_knb}

## Appointment Calendar component properties {#ariaid-title2}

Configure the Appointment Calendar time and date formats with these properties.
To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.

* Data binding: Creates dynamic property values from multiple sources. Sources include state variables (@state), URL variables (@context), or data resource payloads (@data). For details, see [Add and configure data resources to a
  page](https://www.servicenow.com/docs/~B53KgSqh6jyRj9wmzg8LA "Add data resources to dynamically expose data from tables, records, or other elements on your page in UI Builder.") .
* Scripting: Creates a scripted property value. For details on scripted values, see [Create and bind a client state parameter to a component](https://www.servicenow.com/docs/JxkxcsWDJlkywLr4rc~p8A "Create and bind a client state parameter value to a component in UI Builder. By adding custom values to your components, these components can then be automatically updated through a script.") .
{#appointment-calendar-config-properties__choices_4jq_bp0_csl}
{#appointment-calendar-config-properties__table_bb3_rfz_bfc__entry__2}

| Field \[property\] | Description |
|-|-|
| Title \[appTitle\] | Title of the appointment booking. |
| View \[view\] | View to display when the appointment calendar loads. Available choices: * Day: Displays the day with corresponding date in a selected month. * Week: Displays the week containing the configured selected date. {#appointment-calendar-config-properties__ul_s1x_srh_cfc} Default: Day Note: This property only impacts the view shown when the calendar loads. Users can switch between the day and week view if you enable Show View selector. |
| Time zone \[timezone\] | Time zone to display in the calendar. This property's configuration impacts the time and date displayed in the calendar. Some of the available options are: * America/Argentina/Jujuy * America/Argentina/La_Rioja * America/Argentina/Mendoza * America/Edmonton * America/Ensenada * America/Fort_Nelson * Asia/Calcutta * Asia/Chita * Asia/Chongqing * Asia/Gaza * Asia/Harbin * Asia/Hebron * Atlantic/Azores * Atlantic/Bermuda * Atlantic/Canary * Atlantic/Cape_Verde * Australia/ACT * Australia/Adelaide * Australia/Brisbane * Australia/Broken_Hill * CET * CST6CDT * Canada/Atlantic * Canada/Central * Canada/Eastern * EET * EST * EST5EDT * Egypt * Eire * Etc/GMT * Etc/GMT+0 * Europe/Amsterdam * Europe/Andorra * Europe/Astrakhan * Europe/Athens * GMT * MST * MST7MDT * Mexico/BajaNorte * Mexico/BajaSur * Mexico/General * NZ * NZ-CHAT * Navajo * PRC * PST8PDT * Pacific/Apia * Pacific/Auckland * US/Mountain * US/Pacific * US/Samoa * UTC * Universal * W-SU * WET * Zulu {#appointment-calendar-config-properties__ul_okt_xq1_yfc} Default: GMT |
| Locale \[locale\] | Language in which to display the calendar. Some of the available options are: * en * af * ar-dz * ar-kw * ar-ly * en-au * en-ca * en-gb * eu * fa * fi * fil * fo * fr-ca * fr-ch * fr * ku * ky * lb * lo * oc-lnc * pa-in * pl * pt-br * tl-ph * tlh * tr * tzl * tzm-latn * uk * ur * uz-latn * x-pseudo * yo * zh-cn * zh-hk * zh-mo * zh-tw {#appointment-calendar-config-properties__ul_tlj_ct1_yfc} Default: en |
| Selected date \[contextDate\] | Starting contextual date to show in the calendar. Supported formats: * UTC MS * ISO (YYYY-MM-DD) * GlideDate internal format (yyyy-MM-dd HH:mm:ss) * Moment (moment object) {#appointment-calendar-config-properties__ul_tld_kzm_cfc} Default: 2023-07-05 Note: The default value in this field is to indicate the supported format. Update it based on your requirements when configuring the component. |
| Calendar entries \[events\] | Array of appointments. Edit the objects in the array based on your requirements. Object structure: * `start`: Start date and time range of the event slot. Format: YYYY-MM-DD HH:mm:ss * `end`: End date and time range of the event slot. Format: YYYY-MM-DD HH:mm:ss * `type`: Slot type. Choices: * `available` * `unavailable` * `selected` {#appointment-calendar-config-properties__ul_fwq_fr1_cfc} * `category`: Unique identifier for the category object (category ID). Use number or string. * `hasConflict`: Availability status. Choices: * `true` * `false` {#appointment-calendar-config-properties__ul_cp3_vsc_ddc} * `tooltip`: Hover text to display for the event slot. * `title`: Label to display for the event slot. * `primaryInfoData`: Contextual tag to display in the time slot. You can use up to two of the following tags. Choices: * `label`: Tag label * `color`: Label color * `icon`: Tag icon {#appointment-calendar-config-properties__ul_qbx_qsc_ddc} * `secondaryInfoData`: Additional information to display in the event slot. Supports a maximum of one secondary tag - `label`. {#appointment-calendar-config-properties__ul_ztg_src_ddc} Default: [ { "start": "2023-07-05 08:00:00", "end": "2023-07-05 10:00:00", "type": "available", "primaryInfoData": [ { "color": "warning", "icon": "clock-outline" }, { "color": "critical", "icon": "clock-outline" } ] }, { "start": "2023-07-05 10:00:00", "end": "2023-07-05 12:00:00", "type": "unavailable", "category": "morning", "hasConflict": true }, ... ... "start": "2023-07-01 12:00:00", "end": "2023-07-01 14:00:00", "type": "unavailable", "category": "afternoon" }, { "start": "2023-07-01 14:00:00", "end": "2023-07-01 16:00:00", "type": "unavailable", "category": "afternoon" }, { "start": "2023-07-15 08:00:00", "end": "2023-07-15 10:00:00", "type": "available" } ] Note: The default value is to indicate the supported format, structure, and properties. Update it based on your requirements when configuring the component. |
| Next available slot \[nextAvailableEvent\] | Next available event outside the view range as a JSON object. Object structure: * `start`: Start date and time range of the event slot. Format: YYYY-MM-DD HH:mm:ss * `end`: End date and time range of the event slot. Format: YYYY-MM-DD HH:mm:ss {#appointment-calendar-config-properties__ul_uby_pwh_cfc} Default: { "start": "2023-07-15 08:00:00", "end": "2023-07-15 10:00:00", "title": "Title for next event" } Note: The default value in this field is to indicate the supported format, structure, and properties. Update it based on your requirements when configuring the component. |
[Table 1. Calendar configuration]

{#appointment-calendar-config-properties__table_bb3_rfz_bfc} {#appointment-calendar-config-properties__table_bds_tfz_bfc__entry__2}

| Field \[property\] | Description |
|-|-|
| Date format \[dateFormat\] | Format for display dates. Supported formats: * MMMM D, YYYY * D MMMM, YYYY * MMMM DD, YYYY * DD MMMM, YYYY * YYYY-DD-MM * YYYY-MM-DD * DD-MM-YYYY * MM-DD-YYYY {#appointment-calendar-config-properties__ul_k2z_kz1_yfc} Default: MMMM D, YYYY |
| Apply selected date format to all dates \[applyDateFormatGlobally\] | To apply the selected date format to all dates displayed in the calendar, set to true. Default: false |
| Time format \[timeFormat\] | Format in which to display the time. Available options are: * HH:mm * hh:mm A * hh:mm a {#appointment-calendar-config-properties__ul_ng4_m1b_yfc} Default: hh:mm A |
| First day of the week \[firstDayOfWeek\] | Day to show as the first day of the week in the date-time picker and the week view. Available options are: * Sunday * Monday * Tuesday * Wednesday * Thursday * Friday * Saturday {#appointment-calendar-config-properties__ul_zz5_g1b_yfc} Default: Sunday |
| Enable categories \[enableCategories\] | To show appointment slot categories in the calendar, set to true. Default: false |
| Categories \[categories\] | Slot categories to display in the calendar. All slots are automatically distributed to the categories based on the configuration of this JSON array. Array properties: * `id`: Unique identifier for the category * `label`: Category label * `order`: Order of the category among the other categories * `icon`: Icon to use for the category {#appointment-calendar-config-properties__ul_cm1_1nz_bfc} Default: [ { "id": "morning", "order": 1 }, { "id": "afternoon", "order": 2 }, { "id": "evening", "order": 3 }, { "id": "night", "order": 4 }, { "id": "other" } ] Note: `other` ID is for events that do not have a designated category value set. In such cases, you can overwrite the label from "Other" with another value and icon. Ensure that you also include values for `order`, `label`, and `icons` for such categories as needed. |
| Show View selector \[showViewSelector\] | To display the view selector in the calendar header, set to true. View selector enables the user to switch between day and week view in the calendar. Current calendar configurations are automatically applied to the selected view. Default: false |
| Show slot duration \[showDurationInEvents\] | To display the duration of each event slot, set to true. If set to true, the slot duration displays in each slot pill. Enable this property if slots have varying durations. Default: false |
| Do not show time duration \[disableTimeDuration\] | To hide the time duration from both the calendar header and appointment slot pills, set to true. Default: false |
| Show end time in slot \[showEndTimeInEvents\] | To display the end time (in addition to the start time) in each appointment slot pill, set to true.Default: false |
| Select multiple slots \[enableMultiSelectSlot\] | To enable the user to select multiple event slots, set to true. Default: false |
| Row slot count \[numberOfEventsInEachRow\] | Number of event slots to show in each row in the day view. Maximum allowed value is 5 and the minimum value is 1. Configure based on the typical width of smaller screens. This property impacts how event titles and contextual information are displayed. Displaying fewer slots in each row enables displaying the event text with minimal truncation or wrapping. Default: 5 |
[Table 2. Advanced calendar configuration]

{#appointment-calendar-config-properties__table_bds_tfz_bfc} {#appointment-calendar-config-properties__table_wht_5fz_bfc__entry__2}

| Field \[property\] | Description |
|-|-|
| Disable previous slots \[disablePreviousSlotDates\] | To disable all dates before the current date in the mini-calendar and mark all previous events as unavailable, set to true. Enabling this property also marks all available slots before the current slot as unavailable. Default: false |
| Disable non available dates \[disableNonAvailableSlotDates\] | To disable all dates where there are no available slots in the date-time picker, set to true. Default: false |
[Table 3. Date picker configuration]

{#appointment-calendar-config-properties__table_wht_5fz_bfc} {#appointment-calendar-config-properties__table_gcy_vfz_bfc__entry__2}

| Field \[property\] | Description |
|-|-|
| Configure ARIA \[configAria\] | ARIA labels for the calendar. * `ariaTitle`: ARIA title for the entire Calendar. * `ariaBodyTitle`: ARIA title for the section under the header. {#appointment-calendar-config-properties__ul_ws5_srm_vnb} Default: {"ariaTitle": "Appointment calendar", "ariaBodyTitle": "Appointment calendar"} |
[Table 4. Accessibility configuration]

{#appointment-calendar-config-properties__table_gcy_vfz_bfc} {#appointment-calendar-config-properties__table_idw_wfz_bfc__entry__2}

| Field \[property\] | Description |
|-|-|
| Disable padding \[bare\] | To disable the padding (8px) around the calendar, set to true. Note: To configure other style elements like shadow, width, and so on, select the Style tab. Default: false |
[Table 5. Style configuration]

{#appointment-calendar-config-properties__table_idw_wfz_bfc} {#appointment-calendar-config-properties__table_yxl_xfz_bfc__entry__2}

| Field \[property\] | Description |
|-|-|
| Disable truncation \[disableTruncation\] | Applies to screen sizes lower than 640px. To wrap text instead of truncating it when the characters exceed screen width, set to true. Default: false |
[Table 6. Mobile configuration]

{#appointment-calendar-config-properties__table_yxl_xfz_bfc}

## Appointment Calendar component events {#ariaid-title3}

Select event handlers to configure the events provided with the Appointment Calendar component. Event handlers work with data resources to link the Appointment Calendar actions to the data you want to display to your users.
The Events tab shows the events used by the Appointment Calendar component. Events with presets are marked with the Preset badge. To show events that don't have preset configurations, select
+ Add event mapping. If the component has only one event and that event doesn't have a preset, the event is displayed and is ready for configuration.

### Event handlers {#appointment-calendar-config-events__section_iha_ted_ita}

Event handlers work with data resources to link the Appointment Calendar actions to the data you want to display to your users. Select the event in the list to add one or more event handlers.

For instruction on how to add and delete event handlers
with presets and how to disable an event, see [Configure an event handler](https://www.servicenow.com/docs/8s23OEG1s5oowl~vaOUlLw "Add an event handler to a page, component, data resource, or declarative action within UI Builder so that your user can trigger an action.") and [Disable preset event mappings](https://www.servicenow.com/docs/sHHv~qkTu_D_eRd6J0p0IQ "You can disable event mappings that are automatically created by a component preset.").

### Event descriptions {#appointment-calendar-config-events__section_jt5_k5h_jwb}

{#appointment-calendar-config-events__table_ajl_1vv_rnb__entry__2}

| Event | Description |
|-|-|
| Cancel selected | Triggers when the user selects the Cancel button. |
| Context date changed | Triggers when the current selected date changes on the calendar. Payload: * `fromMoment`: Old selection date, as a moment object. * `fromMS`: Old selection date in UTC milliseconds. * `toMoment`: New selection date as a moment object. * `toMS`: New selection date in UTC milliseconds. {#appointment-calendar-config-events__ul_j2p_vvm_vnb} Payload type: {fromMoment: Moment, toMoment: Moment, fromMS: number, toMS: number} |
| Event selected | Triggers when the user selects an event. Payload: * `event`: Event object that is selected. * `chunkStartDateMoment`: Moment object with the start date of the selected part of the event. * `chunkEndDateMoment`: Moment object with the end date of the selected part of the event. * `chunkStartDateMS`: Start date of the selected part of the event in UTC milliseconds. * `chunkEndDateMS`: End date of the selected part of the event in UTC milliseconds. {#appointment-calendar-config-events__ul_fyx_lvm_vnb} Payload type: {event: Object, chunkStartDateMoment: Moment, chunkEndDateMoment: Moment, chunkStartDateMS: number, chunkEndDateMS: number} |
| Propose appointment slots | Triggers when the user proposes a slot for appointment. Payload: `events`. An array object with the selected events. Payload type: (events: Array<Object>) |
| Range updated | Triggers when the range of visible dates on the calendar change. Payload: * `startMoment`: Start date seen in view as a moment object. * `endMoment`: End date seen in view as a moment object. * `startMS`: Start date seen in view in UTC milliseconds. * `endMS`: End date seen in view in UTC milliseconds. {#appointment-calendar-config-events__ul_b4z_c3v_2fc} |
| Reschedule appointment | Triggers when the appointment is rescheduled. Payload: * `startMoment`: Start date seen in view as a moment object. * `endMoment`: End date seen in view as a moment object. * `startMS`: Start date seen in view in UTC milliseconds. * `endMS`: End date seen in view in UTC milliseconds. {#appointment-calendar-config-events__ul_xvl_pxm_vnb} Payload type: {startMoment: Moment, endMoment: Moment, startMS: number, endMS: number} |
| Schedule appointment | Triggers when an appointment event is scheduled. Payload: `event`. Object that represents the event chosen. For example, start, end, type. Payload type: {event: Object} |
| View updated | Triggers when the user changes the view. Payload: * `from`: Previous view * `to`: Current view {#appointment-calendar-config-events__ul_sxz_t3v_2fc} |
[ ]

{#appointment-calendar-config-events__table_ajl_1vv_rnb}

