Restrict user to select date upto 3 weeks in Catalog item

Vijay Baokar
Kilo Sage

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.

1 ACCEPTED SOLUTION

Kieran Anson
Kilo Patron

Morning Vijay,

A low-code method would be to use a UI Policy to restrict the available date choices.

KieranAnson_0-1714032349801.png

 

For more details, please do read through @Mark Roethof's comprehensive article covering this No Code date validations through (Catalog) UI Policies 

View solution in original post

4 REPLIES 4

Kieran Anson
Kilo Patron

Morning Vijay,

A low-code method would be to use a UI Policy to restrict the available date choices.

KieranAnson_0-1714032349801.png

 

For more details, please do read through @Mark Roethof's comprehensive article covering this No Code date validations through (Catalog) UI Policies 

@Kieran Anson 

With the same UI policy, i can still select 2024-05-24 which is more than 21 days from now.

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.

KieranAnson_0-1714033964991.png

 

 

cool, now its working.

Thanks.