I want to hide "email" on "more option" button

Arnaud5
Tera Contributor

Hi !

"Email"  is  displayed  on incident form on "more option" button .

 I want to hide it  for only  incident form  and for a specific condition. 

 

I  tried to configure the ACL, but it does'nt work.  The result is  that "email"  desappear always without testing the condition. 

Can someone help me please ?

 

1 ACCEPTED SOLUTION

vinothkumar
Tera Guru

PLease refer the below link.

 

https://docs.servicenow.com/bundle/london-servicenow-platform/page/administer/notification/reference/r_RemoveTheEmailIcon.htm

 

You can also do this with help of onLoad client script by writing something as below.

 

if(!g_user.hasRoles()){
$('email_client_open').hide();
}

View solution in original post

7 REPLIES 7

VigneshMC
Mega Sage

I was able to hide using below script , using as onload client script, but shows as an blank space, may be someone with better knowledge in html , can fix that. Add conditions as needed, before hiding

function onLoad() {	
   var email = document.getElementById('email_client_open');
   email.style.visibility = 'hidden';
}

Arnaud5
Tera Contributor

It works !!!!!

 

Thank you for your help. 

You are welcome!!