Buy Now
Sign in

Datepicker limit from today

cschaffl , December 27 2021, 11:57
C
cschaffl 1
December 27 2021, 11:57 #397661
Hi
Would anybody know a way to limit the Datepicker to not being able to select past dates?
I'm building a form where the user can order something at a specified date / time, so it does not make any sense to let him choose a past date...
Thanks for your help!
Best,
Chris
GreyHead 65
December 28 2021, 09:22 #397662
Hi Chris,
Have you tried using the Date Limits Advanced Setting with {date:} as the setting. I haven't checked but this ought to work if the Date Limits setting will read the short code successfully.
Bob
If you'd like to buy me a coffee or two, thank you very much
C
Colnem 427
December 28 2021, 10:51 #397663
Hi
I tried this with Chronoforms 6.
You have to set Earliest Date: {date:}
Never try with CF7.
Happy New Year
P
Pigna 96
January 04 2022, 08:52 #397694
Hi,
{date:} work in CFv7 too, and you can add days and set format: {date:Y-m-d$+5 days}