Any possibility to to make past dates are Readonly/grey out in in Calander

Gillerla Rajesh
Tera Contributor

HI There,

 

Any Possibility is there to make past Dates are not selectable, i don't need any comparision and then clearing the value thing, when user see the calender he/she can select only feature date only.

GillerlaRajesh_0-1739593199055.png

 

 

Regards,

Rajesh.

4 REPLIES 4

Barath P
Tera Guru

Hi @Gillerla Rajesh,

I don't believe it's possible to gray out dates. However, you can create a UI policy or client script that checks the selected date and informs the user that past dates are not a valid selection

"If you found my answer helpful, please give it a like and mark it as the accepted solution. It helps others find the solution more easily and supports the community!"

 

Thanks & Regards,

Barath.P


 

Nishant8
Giga Sage

Hello @Gillerla Rajesh , It's good to have this feature, but to my understanding, there is no such feature available. one of the possible solutions is validating the dates with help of UI Policy.

 

Regards,

Nishant

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Gillerla Rajesh 

 

No, there is no such feature but what is your use case here? You'd better go OOTB, UI policy way and put the code if you need a back date and then get the error message.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@Gillerla Rajesh 

This is not possible within ServiceNow.

You will have to use either UI policy or client script to perform the validation.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader