- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 10:46 AM - edited 03-07-2024 10:47 AM
I have a requirement on a catalog item to restrict the date variable a person can select to be the last day of the current year. I'm guessing I'll need to write a client script but I'm not sure exactly how to go about checking that it's the end of the current calendar year. Any suggestions are appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 10:54 AM
Hi @phaug ,
It is easily doable using UI Policies. Please review the community article - https://www.servicenow.com/community/developer-articles/no-code-date-validations-through-catalog-ui-....
If my response helped you, please click on "Accept as solution" and mark it as helpful.
- Saloni
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 10:54 AM
Hi @phaug ,
It is easily doable using UI Policies. Please review the community article - https://www.servicenow.com/community/developer-articles/no-code-date-validations-through-catalog-ui-....
If my response helped you, please click on "Accept as solution" and mark it as helpful.
- Saloni
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 11:48 AM
Thanks, that worked. It allowed me to set it dynamically so I don't have to update it every year.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 11:04 AM
Hi @phaug ,
You can try this method :