Date Recur Default Values

Last updated on
25 January 2019

Default field value for Recurring Date field can be configured at the field instance level.

For a default value to work, the value must be considered valid and save-able as determined by Drupal. The field type requires start date, end date, and timezone to be set. Requirements can be seen by checking in on field schema or the DateRecurItem::isEmpty method.

RRULE is an optional default field value. To set a default RRULE, the other fields must also be set, per above.

Changing default values

  1. To change default values, navigate to the field edit settings page for a date recur field. (Field UI module must be enabled).
  2. Change default start-date and/or end-date to a value other than '- None -'.
  3. If using Relative date, enter a valid value.
  4. Configure the Start and end date time zone field. This is required if setting default start/end dates.
  5. Configure the Time zone field.
  6. Optionally, configure the RRULE field.
  7. Save the form.

Help improve this page

Page status: No known problems

You can: