- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 09:46 PM
Hi
How to restrict user to update time only 24 hours from selection Date
Thanks In advance!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 09:58 PM - edited 07-25-2024 10:02 PM
Hi,
You can create an UI policy that checks if the start date and end date are less than 24 hours apart.
Selection of dates that differ more will still be possible, but the UI policy can, for example, clear the end date and inform the user to select another date if the date selected is invalid.
Be adviced that UI policies only work on the work on the form, if you need to validate this on backend, you'll need to combine it with either a data policy or a business rule that checks the values entered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 09:49 PM
Hi @Anu2013 ,
Please check the below article:
No Code date validations through (Catalog) UI Policies
Mark this as Helpful / Accept the Solution if this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 09:58 PM - edited 07-25-2024 10:02 PM
Hi,
You can create an UI policy that checks if the start date and end date are less than 24 hours apart.
Selection of dates that differ more will still be possible, but the UI policy can, for example, clear the end date and inform the user to select another date if the date selected is invalid.
Be adviced that UI policies only work on the work on the form, if you need to validate this on backend, you'll need to combine it with either a data policy or a business rule that checks the values entered.