How to restrict past date selection in due date field in problem task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Team,
I want to restrict past date selection in due date field in problem task and Change task tables.
I have tried directly in UI Policy, it is working but in form it is showing error, if selected date has passed past date.
Apart from that how can i do this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
so you don't want users to select today? Only tomorrow should be allowed?
what if current time is 12.05pm and if they select same date today but time as 12.10pm?
Is that allowed?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I want to select today then it needs to accept,
if I select past days then it should show error message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Example:
In Due date I have selected date as 04/02/2026, it is accepted and it worked fine.
If I checks the same record tomorrow, due date value is showing as empty, because we are selecting clear value.
I don't want to clear the value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
why not to clear if it's invalid?
If you don't want to clear then you can show error message near field
Is that not stopping user from saving an invalid date?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
No it is not stopping, user is able to save that record after entering past date
below is example, I have add date as 1/2/2026, it show's error message, but it saves the record. below is the screenshot

