- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2024 10:19 PM
Hi All,
On a catalog date variable i want to allow only past dates not today date or future date. how we can do using the UI polices.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 12:44 AM
Hi @Yasin Shaik11 ,
Uncheck the Onload checkbox from UI policy & the script u should write in false condition. After making this changes please check it will work.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2024 10:36 PM
the above approach is working future dates only not past dates.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2024 10:48 PM
Read the article I mentioned. Works also for past dates. Proven mechanism!
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2024 10:51 PM
Please uncheck the on Load check box on UI policy n check it will work Just tested in my PDI. Please also check article recommended by @Mark Roethof .
Thanks,
Danish