- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 01:49 AM
Hi All,
I am having a datetime field in servicenow with the name "issue_first_occur". I tried with below script, but it is not working. Please help me with the script that when someone selects the date in future, the script shouldnot accept it
I created an on change catalog client script
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 01:56 AM
no script required. you can handle it using UI policy
No Code date validations thru (Catalog) UI Policies
Field type is date or date/time?
If it's date/time then use g_user_date_time_format instead of g_user_date_format
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-31-2023 01:56 AM
no script required. you can handle it using UI policy
No Code date validations thru (Catalog) UI Policies
Field type is date or date/time?
If it's date/time then use g_user_date_time_format instead of g_user_date_format
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-31-2023 02:20 AM
Thankyou @Ankur Bawiskar it worked well after I give g_user_date_time_format as it is date/time field type.