How to Greyed Out past dates for a Date type variable

Dan33
Tera Contributor

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.

7 REPLIES 7

Allen Andreas
Administrator
Administrator

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!

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 Roethof
Tera Patron
Tera Patron

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

LinkedIn

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

LinkedIn