- Description:
This key defines the earliest date and time, inclusive, that CloudCannon will allow in an Input.
When configured, CloudCannon will prevent you from selecting an earlier date and time.
If the Input already contains an earlier date and time, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.
Value must be in ISO8601 format.
The value can have quotation marks or no quotation marks.
If
options.end_beforeis also configured, this key cannot be a later date and time.This key has no default.
This key is available for Date and Time Inputs.
- Appears in:
└── _inputs └── * └── Date/Datetime Input └── options └── start_from- Types:
This key defines the earliest date and time, inclusive, that CloudCannon will allow in an Input.
When configured, CloudCannon will prevent you from selecting an earlier date and time.
If the Input already contains an earlier date and time, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.
Value must be in ISO8601 format and should be in quotes.
If
options.end_beforeis also configured, this key cannot be a later date and time.This key has no default.
This key is available for Date and Time Inputs.
Date Start Fromdate#This key defines the earliest date and time, inclusive, that CloudCannon will allow in an Input.
When configured, CloudCannon will prevent you from selecting an earlier date and time.
If the Input already contains an earlier date and time, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.
Value must be in ISO8601 format and should not be in quotes.
If
options.end_beforeis also configured, this key cannot be a later date and time.This key has no default.
This key is available for Date and Time Inputs.
- Examples:
In this example, we want our team to enter the date and time of an event in the
2022_eventInput. This Input will only allow dates on or after January 1st, 2022.Copied to clipboard_inputs: 2022_event: type: datetime options: start_from: 2022-01-01T00:00:00.000Z end_before: 2023-01-01T00:00:00.000Z{ "_inputs": { "2022_event": { "type": "datetime", "options": { "start_from": "2022-01-01T00:00:00.000Z", "end_before": "2023-01-01T00:00:00.000Z" } } } }