We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Only past dates on catalog date variable

Yasin Shaik11
Tera Contributor

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. 

1 ACCEPTED SOLUTION

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

 

View solution in original post

12 REPLIES 12

@Danish Bhairag2 

the above approach is working future dates only not past dates.   

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

LinkedIn

@Yasin Shaik11 ,

 

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