# Get/Set Options Dynamically

> FullCalendar v5 documentation, for an old release. Web version: https://legacy.fullcalendar.io/v5/dynamic-options
>
> Latest version (v7): https://fullcalendar.io/docs/dynamic-options.md

You can get/set calendar options after a calendar has already been initialized.

## Getting

You can query for the current value of a calendar option:

```js
calendar.getOption('locale');
```

This will only return options that are global to the calendar. This method will *not* return [View-Specific Options](https://legacy.fullcalendar.io/v5/view-specific-options.md).


## Setting

It is possible to dynamically set options after initialization. These option modifications will be applied to all views. It is not currently possible to set [View-Specific Options](https://legacy.fullcalendar.io/v5/view-specific-options.md) in this manner.

You can dynamically set a single option:

```js
calendar.setOption('locale', 'fr');
```

## Exceptions

Some options need to be **manipulated through methods**:

- initialDate - use [gotoDate](https://legacy.fullcalendar.io/v5/Calendar-gotoDate.md) instead
- initialView - use [changeView](https://legacy.fullcalendar.io/v5/Calendar-changeView.md) instead

Event Sources should be dynamically manipulated through methods like [addEventSource](https://legacy.fullcalendar.io/v5/Calendar-addEventSource.md) and [remove](https://legacy.fullcalendar.io/v5/EventSource-remove.md). Thusly, dynamic setting of the following options is **not applicable**:

- events
- eventSources

Some options affect processing of event data. Dynamically setting them will *not* change current event data, but *will* take effect for **future event fetches**:

- defaultTimedEventDuration
- defaultAllDayEventDuration
- defaultAllDay
- forceEventDuration
- eventDataTransform
- startParam
- endParam
- timeZoneParam

Dynamic setting of some options is simply **not yet implemented**:

- views
