Contributors mailing list archives
Re: Calendar widget: restrict choice to certain datesby "Thomas Pot" <firstname.lastname@example.org> - 25/07/2023 16:21:17
Aan: "Contributors" <email@example.com>
Verzonden: Dinsdag 25 juli 2023 15:22:17
Onderwerp: Calendar widget: restrict choice to certain dates
I need to restrict the possible dates on the calendar widget: certain dates need to be selectable and others can't; and it should be visually clear which is which. As an example use case, I want to prevent the user from being able to schedule the delivery of a sales order for the weekend, during a holiday, before the lead time has passed, or according to other conditions etc.
I can (and will) block the wrong choice of date server-side, but
the user would have to proceed by trial and error if they don't
have any feedback about which dates are actually valid and
I was wondering if anybody knew of a similar module or had already developed something similar.
Thank you for your time!