'Flatpickr set minDate and maxDate dynamically by other field value in field setting without custom JS

How could I set the minDate of a "end date" field to by dynamically bigger than the "start date" field by references to the start date input id without custom Js to track the start date and date.

I didn't see in the docs any solutions for this other then hard code minDate and maxDate.

Something like:

maxDate: "#start-date-id"

which will use value of minDate of "end date" based on the current value in "start date" input field



Solution 1:[1]

Unfortunately you can't, although this would be an excellent feature for what I imagine is a pretty common use case.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 AFOC