Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Is it possible to grey out past date fields in calendar?

SNOW39
Tera Expert

Is it possible to grey out past date fields in calendar? If not why

2 REPLIES 2

Apeksha Joshi
Kilo Guru

Hi ,

I don't think it's possible with the date field that ServiceNow uses.  you could run an onchange client script on it and do some validation after they select the date, but it's not as good a user experience.

Something that I have seen is to create a custom date field in a ui macro and do some of that validation with a jquery plugin, then use a formatter to show the macro on a form. You can populate a hidden date field after they select the date in the macro.

If my reply helps you at all, I’d really appreciate it if you click the Helpful button !

Regards ,

Apeksha

We already have a date validation in place. What i am trying to understand is,

>Is it possible to update anything and make the past date  greyed and non selectable.

> I need it only for one catalog item. Will this be a global change?