Date field restriction only for friday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 08:17 AM
Hi @Ankur Bawiskar,
Reposting my question here,
My requirement is that, i have to restrict the user to select only fridays in the date field it should not allow any other day to be selected.
I wrote used catalog ui policy for this but it allows me to any day but upon selecting anything apart from friday it clears the value and shows alert message only select friday but it works only once upon changing the day the next time it doesn't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 06:29 PM
why not write onChange client script for that?
you can easily check if it's friday
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 11:15 PM
Can you please show me an example do we have to write a script-inlcude as well to call the current date and day to verify whether it's friday or not if not can you show me how?