How to remove Sundays and Saturdays from the calendar pickers?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2014 11:24 AM
Okay so in Project we have a lot of Date/Time fields. One of them, and only one, we need to exclude weekends from being valid options to choose. We know we can do a client script or business rule so that after they pick it, we can prompt them. However, we were asked by the process owner if we could could gray-out or remove the weekends so they couldn't even be chosen.
So, one of my co-workers, who has extensive web development backgrounds, was looking at the code and noticed that it looks like the calendar picker uses the exact same pop-up for all of the Date/Time fields. He thought maybe he could apply a style to hide the days 0 and 6, but then unfortunately since all of the date/time fields appear to use the same pop-up, then it would hide the weekends for all the dat fields.
Here is specifically what he wrote to me:
I am looking to set a style of display = none for the ids in the calendar: GwtDateTimePicker_day# for 0 and 6.
Has anyone come accross this need before and addressed it via the pop-up, and if so, then how?
I'm sure Mark Stanger (Crossfuze) has a solution This looks right up his alley.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2017 01:53 AM
Hello Gary,
I have a similar requirement. Could you please share your scripts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2020 01:21 AM
Hi Garyopela/ Mark Stanger
Can you please provide the full script I have the similar requirement.And how to make the Saturday and Sunday and holidays are disabled in the due_date date pricker.
Regards,
Priyanka G