How to put a restriction for planned start date and current date have 2 business days as lead time

Priyanka77
Tera Guru

Hi,
I need a help for one of my requirement where I need to check if selected planned start date is 2 business days as lead time from current date and if its less than 2 business days then need to make a field mandatory in a form for justification.

Can someone please help me with above requirement how to achieve it.

Thanks in advance!
Priyanka

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Priyanka77 

 

Something similar

 

https://www.servicenow.com/community/itsm-articles/change-management-lead-times/ta-p/2299624

*************************************************************************************************************
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]

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

Thanks for your response @Dr Atul G- LNG. I am able to achieve the functionality via client script but how we can exclude weekends for this validation. Any suggestion

Hi @Priyanka77 

 

https://www.servicenow.com/community/developer-forum/calculating-business-days/m-p/2216452

 

https://www.servicenow.com/community/developer-forum/how-to-exclude-weekends-from-onchange-client-sc...

*************************************************************************************************************
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]

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