limitRange

By default, calendar accepts events without any date limit restriction.

limitRange (special) extra option will set the calendar to limit which dates the user can navigate to and where events can go.

Dates outside of the limit range will be automatically unavailable. The user will not be able to drag or resize events into these areas. Also, the user cannot save an event outside this range, it will be automatically validated and blocked when it tries to do so.

The prev/next buttons in the header toolbar will be automatically grayed out to prevent the user from navigating to an invalid range.

Usage:

The start and end dates are not set in the Extra options field: Only the limitRange word is required.

Since this feature was designed to be supported dinamically by the business model, 2 extra fields are needed in the columns of the calendar Table List control: Start Date field and End Date field.

To be recognized as such, they must be placed in the table list columns AFTER the background field and set as invisible. In order to work properly, these same fields must be placed on the main form where the calendar is in (can also be set as invisible):

1) Setting the fields as calendar limit dates on table list columns: limitRange_control_variables 2) Setting the same fields on the main form where the calendar is in: limitRange_form_variables 3) Final outcome example: limitRange_outcome 4) LimitRange automatic validation: limitRangeValidation