- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 10:33 PM
Hi All,
Actually i have a requirement that , i have two fields "start date and End date", basically if end user select end date 10 days below from the start date , then we need to show error message on submit, user selects 10 or more than 10 days from start date, then only need to submit request?
Please help me to solve this
Thanks
Deepika
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 11:13 PM
did you try to use UI policy for this?
No Code date validations through (Catalog) UI Policies
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 10:48 PM
Hello @Deepika61 ,
Please refer to the below link:
https://www.servicenow.com/community/hrsd-forum/i-want-to-add-validation-on-date-and-time-on-a-recor...
If it is helpful, mark it as a thumbs up!
Thanks & Regards,
Abbas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 10:50 PM
@Deepika61
"Catalog Client Scripts" with type "onSubmit" !
for more information , refer here: Here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 10:57 PM
Hi @Deepika61 ,
I have a solution for your requirement refer to the code below:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 11:13 PM
did you try to use UI policy for this?
No Code date validations through (Catalog) UI Policies
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader