How to Greyed Out past dates for a Date type variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2019 12:57 PM
Hi All,
Can anyone please help to grey out past dates for Date type variable on Portal and Classic view.
I don't want to change my variable into widget. Is there any other way to do it?
I am doing validation on it but i need it to be greyed out.
Thanks in advance.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2019 02:00 PM
Do you mean the field becomes read-only?
Or do you mean when selecting dates on the calendar that pops up for a date or date/time field...past dates are grayed out?
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2019 02:11 PM
while selecting date only the future day should be visible past dates should me greyed out. Field should be editable.
I mean when selecting dates on the calendar that pops up for a date or date/time field...past dates are grayed out.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2019 10:37 PM
Hi there,
I'm not aware of such functionality. Out-of-the-box, I would say: not possible.
(might there be such a thing - or maybe I missed something in New York - let me know)
Kind regards,
Mark
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2019 10:52 PM
If you would like to use a data validation, check out an article I wrote on this:
No Code date validations thru (Catalog) UI Policies
Kind regards,
Mark
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field