In the forms DatePicker field one can set min and max values for dates. For bookings of a stay in a hotel, I would like to set the min date as follows.
Is there a way:
- for arrival_date field: to block dates before "today" (not a fixed date);
- for departure_date field: to allow only dates after arrival_date?
For departure_date, I tried, among others:
validate:
required: true
min: "{{ form.value.arrival_date }}"
max: "2100-12-12"
but that did not work.
Thank you for suggestions. May be @maria have the solution?