I have four date fields.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2024 02:20 AM
I have four date fields on my catalog form. I have four fields in two pairs i.e. Week start date & Week end date as one pair, normal start date and normal end date as second pair.
Now I want to validate, atleast one pair of date is selected before submitting the form.
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2024 02:28 AM
Hi there,
Whats the issue you are running in to doing this with UI Policies?
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2024 02:37 AM
I am trying to achieve it with Client script.
I am giving if-conditon and checking if any of the pair is not not empty but it is not working,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2024 02:51 AM
So why not with UI Policy? As what you are sharing does not need any scripting.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2024 02:44 AM
Hi,
What do you want to validate and when?