- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2024 07:09 AM
Hello Community,
I have an ask to limit the time between two date variables, temp_date and temp_limit. The ask is that no more than 60 days be allowed to be selected on the catalog item (temp_date). I have the below client script however it is still allowing me to select more than 60 days on temp_limit. Can you please help?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2024 07:29 AM
Hi @Dudesdog
Check following link once, this will resolve your issue and no code require to date validations through (Catalog) UI Policies.
Mark as correct and helpful if it solved your query.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2024 07:15 AM - edited 06-06-2024 07:15 AM
Hi @Dudesdog
Please check this article - https://www.servicenow.com/community/developer-forum/how-to-restrict-past-date-selection/m-p/1437062
Mark as correct and helpful if it solved your query.
Regards,
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2024 07:29 AM
Hi @Dudesdog
Check following link once, this will resolve your issue and no code require to date validations through (Catalog) UI Policies.
Mark as correct and helpful if it solved your query.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2024 11:33 AM
Hello, I have set up a UI policy and this still allows the catalog item to be submitted. Is there anything else that needs to be done?