Restrict user from selecting past date

DhanujaH
Tera Contributor

Hi Community,

 

Could you please help me in achieving this how to restrict users from selecting past date in change ticket.

 

Thanks,

Dhanuja

2 ACCEPTED SOLUTIONS

Danish Bhairag2
Tera Sage
Tera Sage

Hi @DhanujaH ,

 

You can create a UI policy for this where under condition u can mention date before today & then under script section of UI policy under condition evaluates to true u can mention  an alert stating past dates cannot be selected n clear out the selected value.

 

Hope this helps!

 

Thanks,

Danish

 

View solution in original post

3 REPLIES 3

Danish Bhairag2
Tera Sage
Tera Sage

Hi @DhanujaH ,

 

You can create a UI policy for this where under condition u can mention date before today & then under script section of UI policy under condition evaluates to true u can mention  an alert stating past dates cannot be selected n clear out the selected value.

 

Hope this helps!

 

Thanks,

Danish

 

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @DhanujaH 

 

Check the ootb validation on change task planned dates , same you can apply for change.

 

 

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

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