Skip To Content
Get In Touch

Search...

CalendarAnything LWC URL and Component Parameters

If your business has requirements that go beyond our out-of-the-box features, reach out - we offer custom development services for CalendarAnything to meet your unique needs.

This article describes the CalendarAnything LWC URL and Component parameters that system administrators can use to customize calendar characteristics such as appearance, grouping, sorting, default views, and so on.

To make it easier to find a given parameter, the parameters are grouped as follows:

Note: This document focuses on customizing CalendarAnything LWC parameters. A separate document exists for Classic.

URL parameters

CalendarAnything LWC URL parameters can be passed in a URL.

Parameter Description Example
c_t Current Date title / button; 0 – disable c_t=0
cid Defines one or more calendars to load when CalendarAnything starts. The calendar friendly name can be used instead of the ID. cid=Event_Cal
date Start date date=2013-11-30
filter Defines the list of calendars to apply dynamic filters (pv[1-10]) to. Calendar id or friendly name can be used. filter=Tasks
g_p Gantt View period – number of months to display; 0 – no limits; g_p=12 // one year;
g_v Gantt View mode. Options include:
– hour
– day
– week
– month
– quarter
g_v=hour
ht disable CA header panel. ht=1
l_dl CA Logo; 0 – disable l_dl=0
l_dp Print Button;  0 – disable l_dp=0
l_ds All ways to settings – My Calendars button, Settings, Quick Settings; 0 – disable l_ds=0
l_n Right button; 0 – disable l_n=0
l_p Left button; 0 – disable l_p=0
l_t Today button; 0 – disable l_t=0
ps(1-10) Filter value for dynamic filters in Custom Grouping. Each number is the filter criteria number to which this value will be applied. This list of filters can be applied to Custom Group By for Swimlane, Gantt and Day Grouping views. ps1=AAA&ps2={!Contact.ID}
pv[1-10] Filter value for dynamic filters. Each number is linked to some filter for some calendar.
List of applied filters define as “filter” parameter
pv1=ABC&pv2={!User.UserID}
r_a Agenda View / button; 0 – disable r_a=0
r_d Day Vew / button; 0 – disable r_d=0
r_dg Day With Grouping View / button; 0 – disable r_dg=0
r_g Gantt View / button; 0 – disable r_g=0
r_m Month View / button; 0 – disable r_m=0
r_s Swimlane View / button; 0 – disable r_s=0
r_w Week View / button; 0 – disable r_w=0
restPrefix Prefix for Subpages (like Community) restPrefix=/somesubpage
restV API Version for  REST Calls restV=41.0
sb Display / hide left panel. Options include:
0 – visible calendar sidebar (even if URL contains “cid=…”
1 – hide full calendar sidebar, display collapsed calendar side bar
2 – hide all calendar sidebars
sb=0
site Define that CA shows on a public site. This means that connect.js is not usable and certain functionality that is not available to site users will be locked. site=1
swimGrouping swimGrouping=SOME_ID_OR_LIST::GROUP_TYPE
SOME_ID_OR_LIST: – field name or ID of the grouping option (public group, preset, list view, etc)
Add several values (except field) with coma splitting for several selected values
GROUP_TYPE – type of grouping value: field, preset, listview, queue, groups. Note: The same parameter value can be added with swimlaneDefaultGroupBy display setting parameter.
swimGrouping=1,2::preset
tz Time Zone ID tz=Asia/Shanghai
url Set the default external URL for “event bar details” behavior.
The URL can include the \[id\] substring; This will be replaced with the element ID at runtime.
url=/apex/detailpage/[id]
v Starting view. Options include:
a – agenda
d – day
dg – day with grouping
g – gantt
m – month
w – week
s – swimlane
v=a

Component parameters

Component parameters can be view specific or for general use among various views. Date literals can be used within component parameters.

Note: n – number of Days/Weeks/Months/Years

Date literals

The CalendarAnything LWC Date Literals are not parameters. They are literal values you can place into component parameters for which it makes sense to have CalendarAnything dynamically generate the actual parameter values. The table below shows available Date Literals you can use.

Days Weeks Months Years Quarters Fiscal Years Fiscal Quarters
YESTERDAY LAST_WEEK LAST_MONTH LAST_YEAR LAST_QUARTER LAST_FISCAL_YEAR LAST_FISCAL_QUARTER
THIS_WEEK THIS_MONTH THIS_YEAR THIS_QUARTER THIS_FISCAL_YEAR THIS_FISCAL_QUARTER
TOMORROW NEXT_WEEK NEXT_MONTH NEXT_YEAR NEXT_QUARTER NEXT_FISCAL_YEAR NEXT_FISCAL_QUARTER
N_DAYS_AGO:n N_WEEKS_AGO:n N_MONTHS_AGO:n N_YEARS_AGO:n N_QUARTERS_AGO:n N_FISCAL_YEARS_AGO:n N_FISCAL_QUARTERS_
AGO:n
LAST_N_DAYS:n LAST_N_WEEKS:n LAST_N_MONTHS:n LAST_N_YEARS:n LAST_N_QUARTERS:n LAST_N_FISCAL_​YEARS:n LAST_N_FISCAL_​
QUARTERS:n
NEXT_N_DAYS:n NEXT_N_WEEKS:n NEXT_N_MONTHS:n NEXT_N_YEARS:n NEXT_N_QUARTERS:n N_FISCAL_YEARS_AGO:n NEXT_N_FISCAL_
​QUARTERS:n

Example:

  • Use case requirement: User needs the start date of the calendar to be 6 months from the current date.
  • Use case solution: Use the parameter LAST_N_MONTHS:n where n is the number of months for this use case. The date literal value would be Date=LAST_N_MONTHS:6

Component parameters: view-specific

Component parameters allow you to specify CalendarAnything Settings at the component level. These will be the default Settings launched each time you open CalendarAnything. The parameters listed in the group below pertain to specific calendar views and are sub-grouped by view.

Parameter Description Possible Values
Agenda View
agendaAdditionalFields LWC Agenda View – show additional fields true | false
agendaEmptyDays Show Empty Days in Agenda View true | false
agendaFieldLabels Display field labels in Agenda View true | false
Day View
dayAdditionalFields LWC Day View – show additional fields true | false
dayFieldLabels LWC Day View – show additional fields labels true | false
dayGroupingAdditionalFields LWC DayGrouping View – show additional fields true | false
dayGroupingFieldLabels LWC DayGrouping View – show additional fields labels true | false
dayModeArea Set the visibility and size of Hourly and All-Day Areas
0_1 – Hours Only
1_9 – 10% All-Day_90% Hours
1_2 – 33% All-Day_67% Hours
1_1 – 50% All-Day_50% Hours
1_0 -All-Day Only
0_1 | 1_9 | 1_2 | 1_1 | 1_0
Gantt View
ganttAdditionalFields Gantt View show additional fields true | false
ganttCell Gantt View Day Cell Width 20 | 40 | 60 | 80 | 100
ganttCollapseFullLine Collapse Grouping One Line true | false
ganttCollapseGroupingByDefault Collapse Grouping by Default true | false
ganttFieldLabels Show field labels for Additional Fields true | false
ganttHideAdditionalFields Auto collapse Additional Fields true | false
ganttPeriod Gantt View period : number of months + all time ; 0.1 – one day, 0.7 – one week 0.1 | 0.7 | 1 | 3 | 6 | 12 | 36 | 120 | 0
ganttRespectHours Respect working hours in Gantt View. true | false
ganttShowStartWeek Mark Start Week Day true | false
ganttShowUnvisible Respect Working Hours in Gantt View true | false
ganttSplit Starting mode of Gantt View day | week | month | quarter
ganttWideTitle Open wide title by default true | false
Kanban View
kanbanAdditionalFields Boolean value to set the Admin setting Display Kanban Additional Fields. true | false
{“kanbanAdditionalFields”:true, ”kanbanFieldLabels”:false}
kanbanFieldLabels Boolean value to set the Admin setting Display Kanban Additional Field Labels. true | false
kanbanDuration Supplies value for Kanban Grouping Duration setting.
  • 0.1 – 1 Day
  • 0.7 – 1 Week
  • 1 – 1 Month
  • 3 – 3 Months
  • 6 – 6 Months
  • 12 – 1 Year
kanbanPeriod Supplies value for Kanban Grouping Interval setting.
  • 0 – No Interval
  • 0.1 – 1 Day
  • 0.7 – 1 Week
  • 1.3 – 1 Month
  • 6 – 6 Months
kanbanSplit Supplies value for Kanban Split by Dates setting.
  • None – No Dates Grouping
  • Date – By Date First
  • Grouping – By Grouping Value First
kanbanPriority Supplies value for Kanban Sorting Priority setting.
  • date – By Date and Title
  • date_calendar – By Date, Calendar and Title
  • date_calendar_sorting – By Date, Calendar, Sorting Field and Title
  • sort_date_title – By Sorting Field, Date and Title
  • sort_title – By Sorting Field and Title
  • sort_calendar_date – By Sorting Field, Calendar, Date and Title
  • calendar_date – By Calendar, Date and Title
  • calendar_sorting – By Calendar, Sorting Field and Title
  • calendar_date_sort – By Calendar, Date, Sorting Field and Title
  • calendar_sort_date – By Calendar, Sorting Field, Date and Title
Month View
extendedRange Query extended date range in month view – one month before and one month after true | false
monthAdditionalFields LWC Month View – show additional fields true | false
monthFieldLabels LWC Month View – show additional fields labels true | false
monthOnlyOne Show only one month true | false
monthShowMonth Show Month names on cells true | false
monthShowWeek Show year week number in week row true | false
monthWeeks 0 – Auto height of week rows on Month View
6 – display 6 week rows
0 | 6
Swimlane View
pinCurrentUser Show current user at first position (also applies to Day Grouping views) true | false
swimlaneAdditionalFields LWC Swimlane View – show additional fields true | false
swimlaneCell Swimlane cell width for Day View 25 | 50 | 100 | 200 | 300
swimlaneDefaultGroupBy Default Swimlane grouping field or user list view empty or some field or some UserList ID (18 chars)
swimlaneDefaultPeriod Default Swimlane period type day | hour
swimlaneDisplayStartEndDate Display Date in the Datetime fields for viewed date true | false
swimlaneEnableGroupBy Display Group by fields option true | false
swimlaneEnableGroups Show Public Groups in Swimlane Selector true | false
swimlaneEnableListViews Display User Listview option true | false
swimlaneEnablePresets Display Custom Grouping option true | false
swimlaneEnableQueue Show Queue in Swimlane / Day with Grouping true | false
swimlaneFieldLabels LWC Swimlane View – show additional fields labels true | false
swimlaneGroupHierarchy Use Hierarchy in Public Groups true | false
swimlaneGroupIncludeRole Load  Roles users in Public Groups true | false
swimlaneGroupIncludeSubgroup Load  Subgroups users in Public Groups true | false
swimlaneOneDayAllDay If FALSE, do not display the Date in the Event Bar if it is an All-Day Event for one day. true | false
swimlanePreset Preset Swimlane value with Quick Creation; set value for assign to / owner id field true | false
swimlaneScrolling Enable swimlane scrolling (change date when getting end of the timeline) true | false
swimlaneShowFilter Whether to show the Group filter in Swimlane View true | false
swimlaneShowWeekDay Display Day  of Week true | false
Week View
weekAdditionalFields LWC Week mode – show additional fields true | false
weekFieldLabels LWC Week mode – show additional fields labels true | false

Component parameters: general

These component parameters are not specific to just one view. They pertain to CalendarAnything LWC calendars in general or to more than one calendar view.

Parameter Description Possible Values
addons List of enabled addons separated by comma chatter, invite, attach, zoom, slack, teams
alwaysBrowserTab In Lightning Open Records in New Browser Tab true | false
alwaysFilterSets Load data with enabled filter set only true | false
apiCache API caching (hours / lazy – means postloading ) 0 | 1 | 3 | 8 | 24 | 168 | lazy
applyFilterSets Apply filter criteria to QC form true | false
autoRefresh turn on data synchronization  with the help of Streaming API nine | api_sobject
barLabelTime Add Start / End date – time on the event  label ‘no’ – no start / end,
‘start’ – start time only,
‘end’ – start + end
cacheTime Data caching time (seconds) 0 – 300
companyLogo Print mode Logo (URL) String
confirmDelete Show popup for user to confirm deletion before deleting item true | false
createable List of calendar IDs/friendly names that are available to the user in the QuickCreate dialogue.  createable=”Event,Task”
css Path to external CSS file that will be loaded after CalendarAnything starts. Can be used to override CalendarAnything styles. css=”/css/mystyles.css”
displayTimeZone Display Time Zone selector true | false
enabled List of calendars ID to enable. Comma delimited.
Or JSON formatted parameters for calendars: {‘CALENDAR’ : [true|false|’default’]};

  • ‘default’ – The first time CA is loaded on the machine, the calendar will be enabled; but afterwards, it will follow the user preferences.
  • true – enable calendar even if user has disabled it previously.
  • false – disable calendar even if user has enabled it previously.

Calendar friendly name can be used. Other predefined values are also available:

  • CA_ALL – means all visible turn on
  • CA_SF – all standard calendars
  • CA_GROUP – all groups
  • CA_WEB – all web calendars,
  • CA_ENABLED – default values from CA UI
enabled=”Event”
enabled=”{
‘Event’ : true,
‘Task’ : false,
‘Opportunity’ : ‘default’
}”
fastStart When set to true, CalendarAnything loads only visible calendar object information on page load. true | false
fullDaySortBy Sort Day Details Popup Events:
date – By Date and Title
calendar_sorting – By Calendar, Sorting Field and Title
date |  calendar_sorting |
func External API functions declaration. See detailed description. func=”{ready:SomeFuncName}”
gradient Display event bars with gradient (requires more resources from browser) on | off
hideNotify Hide all (errors + notifications) or just notifications “all” | “message”
lang CalendarAnything LWC UI language String; ‘en’,’ru’,’uk’
loadLastPeriod Load only last selected period. When the user rapidly clicks on “prev” or “next” this will wait until the user stops clicking and only load the last period. true | false
minMinutePeriod Size of one cell in timing area 60 | 30 | 15 | 10 | 5
mode Starting view month | week | day | custom | agenda| gantt | swimlane  | dayGrouping
multiContactsInEvent Enable Multi Contacts Events true | false
namespace CalendarAnything NameSpace. Must be set to SLCA2. namespace=”SLCA2″
noleft No display settings true | false
nonWorkingHoursDisplay How to display non-working hours. hide | show | paint
orFilterSets Show And Or selector for filter sets true | false
parallelRequests Parallel requests to server; number of requests for events 1 thru 10
qcAutoEnable Enable Calendar after Quick Creation ‘auto’ | ‘off’ | ‘on’
readonly Boolean / JSON settings to disable certain edit functionality.

  • true – disable ALL interactive functionality – edit, create event, calendars, etc.
  • false – enable all interactive functionality (default)
  • JSON parameters (key1 : BOOLEAN, key2 : BOOLEAN); To enable the option, set the Boolean to true; and to disable it, set it to false.

List of options:

  • edit – event edit
  • del – event delete
  • create – create new events
  • detail – show external details by double click
  • move – move event bars
  • hover – display hover popup (internal CA details)
  • contextEvent – context menu for event bars
  • contextCalendar – context menu for calendars; (if false, also hides Cal groups and Web cal sections if no calendars to display)
  • contextArea – context menu for visible mode area
  • cloneSharing – copy sharing rules for cloning calendar
  • contextCalendar – display Calendar Context Menu
  • contextFilter – display FilterSet Context Menu
  • contextICS – download as ICS for event
  • calendarCreate – create new calendar (any type)
  • calendarVisibility – change calendars visibility
  • calendarEdit – edit calendar
  • calendarDelete – delete calendar
  • calendarICAL – ICAL popup
  • calendarICS – ICS export
  • calendarManage – manage list of calendars
  • filtersetEdit – edit FS
  • filtersetCreate – add FS
  • filtersetDelete – delete FS
  • filtersetDefault – set FS ad default
  • filtersetFolder – manage FS folders
  • dsTimezone – manage TZ
  • dsFilteringFields – manage filtering fields
  • dsPublicGroups – manage Public Groups
  • dsIntegrations – Integration menu
readonly=`{
edit:false,
move:true
}Notes:

  • The JSON must be encased in quotes as shown in the example above.
  • All options that need to be disabled, should be set to – TRUE.
    • True – enable readonly mode for the option.
    • False – disable readonly mode for the option.

readonly: true will enable Read-Only mode for all options.

QA Note:

  • CA Read-only Settings: {“edit”:false}
rememberLastView Save last Selected View as Default Calendar view (except when defined with URL or as a component property) and restore it the next time during CalendarAnything startup. true | false
requestTimeout Request timeout in seconds 1 – 300
settings JSON format visual settings settings=”{}”
showAdditionalFields Show additional fields in the Calendar Edit form true | false
showMultipleColor Allow multiple color condition off | corner | line
showThirdLevel Show third level fields true | false
showTitles 0 – No Titles
1 – Compact (title only)
2 – Detailed (title start & end)
3 – Full Agenda (all fields defined in step 10)
4 – Detail Dialog (displays Details dialog as if you clicked on hover)
0 | 1 | 2 | 3 | 4
showWeekEnds Display week ends (5 – up to Friday, 6 – also Saturday, 7 – all week)
Note: 5 and 6 only available with startWeekDay=0
5 | 6 | 7
size Size of event bars (height and font size) small | middle | large
startHourPeriod Start hour for timing area 0-23
startWeekDay Starting day of a week 0-6 (from Sun to Sat)
stopHourPeriod End of timing area 0-23
uiFilter Display Filter Panel true | false
uiFilterSets Display Filter Sets panel true | false
uiSearch Display search field true | false
uiShowAvl Show Availability Calendars block true | false
uiShowDesktopCreate Show Create Button on Desktop true | false
uiShowGroup Show Grouped Calendars block true | false
uiShowSF Show Standard Calendars block true | false
uiShowWeb Show Web Calendars block true | false
uiToday Display Today button true | false
urlparams List of URL parameters. See descriptions in URL Parameters table. urlparams=”l_p=0&v=m”
userAdditionalSettings JSON format user settings. userAdditionalSettings=”{‘noleft’:’true’, ‘maximize’ : ‘false’, ‘dayModeArea’:’1_9′}”
useSFTimeZone Use Server TZ true | false
view Start view: month, day, agenda, week, custom, gantt, swimlane, shadow view=”month”

Ready to see results?

Request a demo