- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2024 12:56 AM
Hi Team,
I have a date field (Start Date) in my catalog item. I need user to select any date only upto 3 weeks from now.
For eg, If user is raising request today 25th Aprl 2024 , he should only be able to select date till 16-May-2024 .Not more than that.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2024 01:05 AM
Morning Vijay,
A low-code method would be to use a UI Policy to restrict the available date choices.
For more details, please do read through @Mark Roethof's comprehensive article covering this No Code date validations through (Catalog) UI Policies

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2024 01:05 AM
Morning Vijay,
A low-code method would be to use a UI Policy to restrict the available date choices.
For more details, please do read through @Mark Roethof's comprehensive article covering this No Code date validations through (Catalog) UI Policies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2024 01:19 AM
With the same UI policy, i can still select 2024-05-24 which is more than 21 days from now.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2024 01:33 AM
Hi @Vijay Baokar did you read through the linked community post which provides the details on how to do this? The screenshot I provided was merely an example of how to do relative date conditions using the condition builder. The following is the condition you're wanting, and then you need to either perform logic within the onCondition script field, or a UI policy action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2024 01:32 AM
cool, now its working.
Thanks.