Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2023 05:06 AM
Hi All,
I have a requirement to restrict a date field to be not more than 2years from another date field. Example, If the field Date_A is '25-05-2023' then we should restrict to select only up to '24-05-2025' in Date_B field. Can you please help to achieve this.
TIA,
Surya. P
Solved! Go to Solution.
1 ACCEPTED SOLUTION

Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2023 05:25 AM
Hi @Surya_Prakash ,
Please use Catalog UI Policy which needs no/Less coding:
Just adjust the date to be "@ years" for your requirement.
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2023 06:21 AM
Awesome 😊
Glad to see i could help you