- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2024 10:26 PM
Hi All,
i have a variable in SP which needs be restricted based on the start date.
if start date is 25/03/2024 then end date should not be more than 90 days from the start date.
can you please help me with this?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2024 10:44 PM
Hi @Anubhav Srivas1 you can create a UI Policy with condition like below, No code required
Cond:
ENDATE ismorethan 90 days after start_date//
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2024 10:36 PM
Please follow thread it will be helpful and modify as per the conditions in the script
Please mark reply as Helpful/Correct, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2024 10:37 PM
Hi there,
Perhaps this older article of mine helps you:
- 2019-08-12 - Article - No Code date validations thru (Catalog) UI Policies
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
03-13-2024 10:43 PM
Hi @Anubhav Srivas1 ,
You can attain this using a simple UI policy with a Relative filter conditon , you can refer the content shared below by @Mark Roethof . That must help you with no code solution.
I hope this helps...
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2024 10:44 PM
Hi @Anubhav Srivas1 you can create a UI Policy with condition like below, No code required
Cond:
ENDATE ismorethan 90 days after start_date//
Harish