It is possible to add and set min/max values for Date data types in MDM. This article shows how developers can set them up in the Data Model, Form, and Search Builders.


Data Model

  1. Navigate to Setup → Case Setup → Case Types
  2. Open the Case Type Data Model
  3. Select the Date Type field. In our example, the Valid Until field.
  4. In the Modify Attribute pop window, scroll down to find the Min Date Value and the Max Date Value settings. In our example, we set the Min date to two weeks before today (Days = -14), and the Max date to 6 months from now (Months = 6). You can check the Example Date fields showing the corresponding dates for this configuration.

Form Builder

  1. Navigate to Setup → Case Setup → Case Types
  2. Open the Case Type Data Model
  3. On the Forms tab, open the Form to add the Min/Max values.
  4. Edit the Date Type field properties to set the Min and Max Durations. In our example, the Valid Until field.
  5. Select the Date field (1), click on the property Min/Max Duration (2) and set the duration in the fields Years, Months, or Days (3). In our example, we set the Max Duration to 6 months.
  6. Save the Form.
  7. In runtime, the calendar will show unavailable dates below Min Duration. In our example, all dates are unavailable 15 days before or more than January 4th.

Search Builder

  1. Navigate to Setup → Case Setup → Case Types
  2. Open the Case Type Data Model
  3. On the Search tab, open the search form to add the Min/Max values.
  4. Edit the Date Type field properties to set the Min and Max Durations. In our example, the Valid Until field.
  5. Click on the field Min/Max Duration and set the duration in the fields Years, Months, or Days. In our example, we set the Max Duration to 6 months.
  6. In runtime, the calendar will show unavailable dates below Min Duration. In our example, all dates are unavailable 15 days before or more than January 4th.