☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

start_from_message

Table of contents

Description:

This key defines a custom error message that explains why a value has failed the validation criteria from options.start_from. This key requires you to define options.start_from.

This key has no default.

This key is available for Date and Time Inputs.

Appears in:
└── _inputs
    └── *
        └── Date/Datetime Input
            └── options
                └── start_from_message
Type:
string
Examples:

In this example, we prompt our team to enter a valid date using a custom message.

Copied to clipboard
_inputs:
  2022_event:
    type: datetime
    options:
      start_from: 2022-01-01T00:00:00.000Z
      start_from_message: Date is too early. Must be during 2022.
      end_before: 2023-01-01T00:00:00.000Z
      end_before_message: Date is too late. Must be during 2022.
{
  "_inputs": {
    "2022_event": {
      "type": "datetime",
      "options": {
        "start_from": "2022-01-01T00:00:00.000Z",
        "start_from_message": "Date is too early. Must be during 2022.",
        "end_before": "2023-01-01T00:00:00.000Z",
        "end_before_message": "Date is too late. Must be during 2022."
      }
    }
  }
}
Open in a new tab