Replies: 1 comment
-
If I understand correctly, you want the minimum date to be tomorrow's date, correct? You will need this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Folks
Wondering if anyone can help? I have a form on our website for booking reservations in our restaurant. I have used Elementor Pro for the form. Which I believe now uses Flatpickr as its base. I am trying to set a minDate value for 'tomorrow' but just can't seem to get it to work? I have added the code on the page itself as well as in Elementor Pro's Custom code section but just can't get it to work. I have managed to change the date format to d.m.Y so know that it works.
Any help much appreciated.
Link to site...
https://pendlevillage.co.uk/the-chocolate-strawberry-tearoom-at-pendle-village-2/#bookatable
Here's the code I have used.
flatpickr('#resv_date', {
"minDate": new Date().fp_incr(1)
});
Beta Was this translation helpful? Give feedback.
All reactions