Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Making Service offering field mandatory in Change Request Form

Piyush Dwivedi
Tera Contributor

In Change Request form how to make service offering field mandatory When a user selects a Service in the "Service" field that belong to Business Service or Technical Service CI class

1 ACCEPTED SOLUTION

Hi @Piyush Dwivedi 

 

Make sure you added the table first in UI policy

 

DrAtulGLNG_0-1749136406021.png

 

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

22 REPLIES 22

Is it possible via Dot walk?

script include handles the "dot-walk" issue.

Hi @Piyush Dwivedi 

If the above UI policy condition is not met, it means the service is not mandatory, so there’s no need to write the reverse part.

 

In UI Policy we have flag called Reverse if false that will be build for same purpose.

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

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

Hello Atul,

 

I am trying within Change Request form.

so when i select the Service (Business Service or Technical Service), service offering field is getting mandatory automatically once i submit the Change...later i decided to change the service to other service then Service offering is not getting optional automatically?

As we tried in the UI policy, if the class is "Technical," then the Service is made mandatory. Conversely, if the class is not "Technical," then the Service should not be mandatory.

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

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