Hi everyone,
I’m trying to implement a date picker with specific restrictions, and I’d appreciate any guidance. Here’s what I need:
If anyone has example code or a solution to achieve this, I would greatly appreciate it!
Thanks in advance!
hallo @Vishal Veerakumar ,
i think this post same your need and marked as solved check and i hope help youhttps://www.outsystems.com/forums/discussion/78806/enable-list-of-input-dates-only/
Hi @Vishal Veerakumar ,
I hope this forge will helps you .
Forge : DatePicker
Warm regards,
Dinesh M
Hello Vishal Veerakumar,
You should be able to create a plan using a combination of optional configurations and client actions like DatePickerDisabledDays and DatePickerDisabledWeekDays, which you can set for the module through manage dependencies.
Basically, in the optional configuration, you can set the minimum and maximum dates, which will disable all days before and after those dates.
Using the DatePickerDisableDays action, you can set a list of specific days as unavailable for selection in the DatePicker. Additionally, with DatePickerDisableWeekDays, you can disable one or more days of the week for a given DatePicker.
Moreover, I would recommend going through the Flatpickr library documentation if you need more advanced options.
Best regards,
Ana
It's not possible to use DatePickerDisableWeekDays as it applies to all weeks. The use case here is different: we need to allow selecting Mondays from past weeks while allowing any future dates. I have created a solution using flatpickr and attached it for reference. Please review it to see if it meets the requirement and customize it as needed.