ServiceNow

Nafisa Zaman
Tera Contributor

Hi,

I have a field called "Due Date" , it means this date field should be made to select only today's and future days, its should be restricted to select the Past dates. How can i change this only for one catalog item variable to select the future dates.

Can someone please help me here.

2 ACCEPTED SOLUTIONS

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @Nafisa Zaman ,

 

Create a UI policy for this : 

 

Condition :

Due date > is relative > on or before today 

 

Ui policy action : 

Clear field and show error....

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

View solution in original post

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Nafisa Zaman 

 

The due date must be set by system and it must be future date only. Better if no one put past date, better to make this field read only. You can make it via UI policy . 

 

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0754985

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

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

View solution in original post

3 REPLIES 3

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @Nafisa Zaman ,

 

Create a UI policy for this : 

 

Condition :

Due date > is relative > on or before today 

 

Ui policy action : 

Clear field and show error....

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

Thank for the help. its working

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Nafisa Zaman 

 

The due date must be set by system and it must be future date only. Better if no one put past date, better to make this field read only. You can make it via UI policy . 

 

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0754985

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

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