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

Hi @Dr Atul G- LNG 
yes, need to hide whole Comment section without any conditions (but only for workspace view)

Hi @miro2 

 

You can remove this via

Incident record (Example) -- Right click - Configure - Form Layout

LearnNGrowAtul_0-1704887216634.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]

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

Yes, I also checked that option and this is also works
If I remove fields from here

miro2_0-1704888025505.png
then on Workspace whole section won't be visible, and on the U16, section Comments/Worknotes will be visible but without fields (and I'm sure agents don't use workspace on native UI)

miro2_1-1704888167796.png

@Dr Atul G- LNG , @Ankur Bawiskar  Note sure what is the best practice or it doesn't matter here. Or maybe go with UI Policy ?

 

 

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]

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

@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