How do I hide work notes only on Service Portal incidents and keep it in back-end ?

mausser
Tera Contributor

Hello,

 

I am trying to hide work notes in the activity stream on an incident on the Service Portal so users cannot see these on the portal, they should however, still be visible in the backend when viewing an incident

 

What is the best way to achieve this?

 

Thank you !

3 REPLIES 3

Community Alums
Not applicable

Hi @mausser ,

not sure about the reason for hiding the work notes on the service portal. If you're worries about end users seeing them it should work the same in SP as it does in the standard ui where only users with the itil role see the work notes.

 

pra16
Tera Contributor

Hi,

 

You can create a onLoad client script with UI type as All or Service portal.

 

function onLoad(){
g_form.setMandatory('field', false); //if the field is mandatory otherwise can remove this line.
g_form.setVisible('field', false);
}

 

 

Please mark it helpful if I could help with your query.

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @mausser 

 

Work notes are not for end user so nothing to work, may be provide some screenshot what your are referring. 

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

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