Client script for this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023 06:23 AM
Need client script for this:
Start date- today's or any date
End date- it should be within 60 days from start date. Or else error should get displayed. In servicenow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023 06:30 AM
Hi @User267,
I would suggests to use UI policies instead of Client scripts for date field validations.
Refer great article written by Mark: No Code date validations through (Catalog) UI Policies
If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023 06:47 AM
you can easily achieve using UI policy.
Why to use client script?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader