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

@Ankur Bawiskar 
yes, I understand. I will remove section and fields. We will keep Comments and Worknotes in the Compose section. The business requirement is to have only the Compose section, so 'Comments and Worknotes' section seems to be redundant. 

miro2_1-1704893545684.png

 

@miro2 

then as I mentioned above why not remove those fields from that workspace view itself

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @miro2 

 

Share the feedback with us.

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

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

@Dr Atul G- LNG 
I will share the results soon once I figure out one issue. Basically, when I removed the Comments/Worknotes record (screenshot below), the Compose section was also deleted from the workspace view, but I want to keep it

miro2_0-1704905830417.png

Compose section that also was deleted

miro2_1-1704906040542.png

 

Hi @Dr Atul G- LNG@Ankur Bawiskar 
It seems like the Compose section is an integral part of the Comments/Worknotes sections in the workspace view. Therefore, if I remove any of the fields (comments/work notes) from the workspace view, they won't be available in the Compose section either.
I kept only worknotes, and comments were deleted from the workspace view.

miro2_1-1704907994440.png

 

miro2_3-1704909147172.png

 


miro2_0-1704907952863.png

This means I need to go with a UI Policy, as only this solution works --> Comments/Worknotes section is hidden, and the Compose section is visible.
I'm open to different solutions if you have anything to suggest.