Validation for Date up to no less than 2 Future Business Days
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2022 07:04 AM
Hello Everyone,
I have been tasked with creating a script on a catalog item that will validate if a selected date is no less than 2 future business days from the current date. Since this needs to take business days into account weekends should be excluded. From what I understand this will require a combination of both a client script and a script include. How would I go about doing this? I have seen other examples on the community but none that fit my current needed example. Thank you.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2022 07:10 AM
Hello, I found the exact blog that can serve your purpose check it fully I hope it helps
https://community.servicenow.com/community?id=community_article&sys_id=4c66ff4a1bde08107a5933f2cd4bcbc4
Mark my Answer as CORRECT and Helpful if it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2022 07:57 AM
Hello,
This article provides info on how to restrict a date field from selecting weekends, but this does not help me with restricting a user from selecting a date that is less than 2 days from the future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2022 08:34 AM