Hide comments section using UI Policy

miro2
Mega Sage

Hi,

 

I need to hide Comments and Worknotes section in the HR Agent Workspace on HR case form.
I can do this using UI Policy and only apply it to the workspace view.

My question is whether I need to use the 'Reverse if false' checkbox and use a script 'Execute if false' ?

Or uncheck 'Reverse if false' and use only Execute if true.

miro2_0-1704886820047.png

 

 

miro2_0-1704883510746.png

miro2_1-1704883527683.png

 

2 ACCEPTED SOLUTIONS

Hi @miro2 

 

Best practice is don't change / hide. You can remove the section as well by going in Form Design and remove that section.

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

@miro2 

Best practice recommends if you are not using those fields don't keep them in that view.

So remove that section.

But I will suggest have a discussion with customer.

Without those 2 fields agent can't communicate information to internal user and end user

So decide if those needs to be removed

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

View solution in original post

15 REPLIES 15

Dr Atul G- LNG
Tera Patron
Tera Patron

OOTB, go for reverse is False. @miro2 

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

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

Ankur Bawiskar
Tera Patron
Tera Patron

@miro2 

why are you using script when you can use UI policy action?

Also there is no condition?

Do you want to hide it always without any condition?

If yes then why not remove those fields from that workspace view and then you need not do anything

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 @Ankur Bawiskar

Yes, I need to hide/remove the Comments and Worknotes sections highlighted in red.

UI Policy action on comments and worknotes doesn't seem to work for me. And just to clarify, I don't need to apply any conditions right now.

 

miro2_0-1704886560236.png

 

 

So, you want to hide it permanently if there is no condition you are putting? Then update the view and remove these. 

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

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