Skip Navigation

[Resolved] How to disable future date in date picker

This support ticket is created 6 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 1 reply, has 2 voices.

Last updated by Beda 6 years ago.

Assisted by: Beda.

Author
Posts
#1194634

I want to disable future date in date picker cred form for front end post submission.

#1194678

You can apply the JS datepicker filters because Toolset Forms uses those by default:
https://toolset.com/forums/topic/limit-date-range-for-cred-form-date-field/
https://toolset.com/forums/topic/limit-date-range-in-datepicker/
https://toolset.com/forums/topic/limit-date-field-according-to-time/

There are many examples in the forum, each a bit tailored to the need of the user.
There is no "future" attribute value to use, but surely you can limit the picker so only dates of or before today can be used:
hidden link