> For the complete documentation index, see [llms.txt](https://jared-gibb.gitbook.io/fullcalendar-plugin-suite/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jared-gibb.gitbook.io/fullcalendar-plugin-suite/elements/calendar/input-fields/event-select-drag-and-drop-restraint.md).

# Restrict When (events can be created) / (events can be drag/dropped)

![](/files/-Mdjk-Z_QFUEr83CpvaX)

## Restrict when events can be created

* Limits user selection to certain windows of time.

## Restrict when events can be drag-and-dropped

* Limits event dragging and resizing to certain windows of time.
* If [business hours](/fullcalendar-plugin-suite/elements/calendar/input-fields/business-hours.md) are given, events being dragged or resized must be fully contained within the week’s business hours (Monday-Friday 9am-5pm by default). This field will be ignored.&#x20;

## &#x20;Event \[ Select / Drag-and-Drop ] Restraint input fields

### Daily Start Times

* This is the start of the window of time
* This will apply for ***all*** [applicable days](/fullcalendar-plugin-suite/elements/calendar/input-fields/event-select-drag-and-drop-restraint.md#applicable-days)
* This input takes time in a 24:00 hour format. Do not include any spaces or any other formatting. This input&#x20;
* The following are some acceptable examples but be aware that at this time, ***the calendar will only accept 1 value***

```javascript
[00:00, 9:00, 12:30, 18:45]
    //only include one time.
    //do not include seconds or any am/pm or other formatting pieces here
```

### Daily End Times

* This is the end of the window of time
* This will apply for ***all*** [applicable days](/fullcalendar-plugin-suite/elements/calendar/input-fields/event-select-drag-and-drop-restraint.md#applicable-days)
* This input takes time in a 24:00 hour format. Do not include any spaces or any other formatting. This input&#x20;
* The following are some acceptable examples but be aware that at this time, ***the calendar will only accept 1 value***

```javascript
[00:00, 9:00, 12:30, 18:45] 
    //only include one time.
    //do not include seconds or any am/pm or other formatting pieces here
```

### Applicable Days&#x20;

* For now, when using either of these settings, the times chosen above will apply to all provided days.
* Days are represented as numbers and are 0-indexed meaning Sunday = 0, Monday = 1, Tuesday = 2, and so on.&#x20;
* This field accepts a list or a comma separated string

```javascript
[1,2,3,4,5] //this list would represent Mon - Fri
```
