Make fields mandatory in list view

AbidJafrey
Tera Contributor

Hi all,

 

Could you help me with how to make fields mandatory in list view when user tries to resolve it from list view, the fields to be mandatory are ci,close code and close notes.

Note: Need help to achieve without UI Policy as it is affecting the integration updates.

 

Thanks

Abid

14 REPLIES 14

Hi @AbidJafrey 

 

So in this case, a client script won’t be helpful. I would suggest using a Data Policy, which will be more effective. Create a Data Policy (similar to a UI Policy), and in the Data Policy action, set the 'Close Code' and 'Note' as mandatory. This should resolve the issue.

 

https://developer.servicenow.com/dev.do#!/learn/courses/xanadu/app_store_learnv2_scripting_xanadu_sc...

 

https://www.servicenow.com/docs/bundle/vancouver-platform-administration/page/administer/field-admin...

 

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

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

maddalahemanth
Tera Contributor

Hii @AbidJafrey ,

you can achieve this by using Data Policy there is an existing data policy for making close code and close notes mandatory, which also work as Ui policy, and that Data policy name is "Make close info mandatory when resolved or closed"

maddalahemanth_0-1742550706731.pngmaddalahemanth_1-1742550725507.png

you can use it for ci also by adding data policy actions or else you can create a new data policy by replicating it.

Ankur Bawiskar
Tera Patron
Tera Patron

@AbidJafrey 

why not use Data policy and make those fields mandatory when State is Resolved?

AnkurBawiskar_0-1742551414637.png

AnkurBawiskar_1-1742551431141.png

 

data policy mandatory.gif

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

Hi @Dr Atul G- LNG @Ankur Bawiskar 

 

Sorry my mistake, i already used data policy and thats what blocking the integration,

 

will gs.interactive be of any help

Hi @AbidJafrey 

 

Blocking integration means it’s not passing values, or is there something else? I need more details.

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

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