Help with catalog client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 10:36 AM
Hi
Can someone please help me with catalog client script
I have a date variable in the new hire form.
The requirement is user should only be allowed to select the "start date" as current date + 2 business days (exclude sat sun).
Example: If I'm filling the form today , (Sept 11) the start date should be Sept 14 or further. User should not be be able to select an ealier date.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 10:43 AM
These two articles should have all the info you need to create a Client Script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 11:55 AM
Thanks. I could not get a + two business days working. How to exclude sat, sun if the request is submitted on a Friday?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 01:35 PM
In that case you'll need to go down the GlideAjax/Script include route, this post goes over setting up a script include to filter out certain days of the week: https://www.servicenow.com/community/developer-forum/how-to-exclude-weekends-from-onchange-client-sc...