How to Restrict Date field that user should able to enter date between 1990-200 year.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2022 12:55 AM
How to Restrict Date field that user should able to enter date between 1990-200 year if he enters 2001 its should not able to create record. and also throw error invalid date
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2022 04:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2022 11:39 PM
Hi,
so what script did you start with and where are you stuck?
regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2022 04:58 AM
Hey,
You can create a UI policy with condition.
I have used created field, you can use same filters and select date from 01/01/1990 to 31/12/2000
And use showfieldmessage in script to give message to user to select correct date.
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Aman Kumar