A time picker field
The time field is perfect for events or any other kind of time-based field content. It creates a selectbox with all available times of the date defined by certain interval.
fields:
time:
label: Time
type: time
Intervals between selectable options are defined in minutes. The default is 60 minutes.
fields:
time:
label: Time
type: time
interval: 30
The default value can either be set to a specific time (e.g. 17:00
) – and will be matched with the closest interval option – or as now
.
fields:
time:
label: Time
type: time
default: now
Setting the override option will always select the default instead of the already saved value, so that on saving the page again, it will be overridden with the default value.
fields:
time:
label: Time
type: time
default: now
override: true