Need to hide "reply All" and "forward" option from Activity Log. can anyone help.

sukirtighosh
Tera Guru

Hi,

 

I need to hide "Reply All" and "forward" option from Activity log. I already looked for "email_reply" OOB UI Macro, and commented the code lines for " Reply all" and "forward" option, but it's still not working. Can anyone help please:

 

find_real_file.png

Looking forward to your responses.

 

Regards

Sukirti

1 ACCEPTED SOLUTION

Mahendra RC
Mega Sage

Hi Sukirtighosh,

Could you please try the below code in onLoad client script to hide the 'Reply All' and 'Forward' buttons:

function onLoad() {
   $j('button[reply-type="replyAll"]').toggle();
   $j('button[reply-type="forward"]').toggle();
}

since I don't see any id for these 2 buttons when I do inspect element in UI 16 as shown in below screenshot. so I tried to hide these buttons by 'reply-type' attribute value:

find_real_file.png

you will be able to see only reply button once the page is loaded as shown in below screenshot:

find_real_file.png

Please mark it correct/helpful, if it resolves your problem.

Thanks

View solution in original post

12 REPLIES 12

Brian Lancaster
Tera Sage

This UI Macro is not turned on OOB.  I would just deactivate it.  Although I tried turning it on and did not see any reply, reply all, or forward option in the activity.

That's because this UI macro works only for UI15. For UI16 servicenow has given a workaround to create a new property "glide.ui16.emailStreamResponseActions" and set it's value to True. Now issue is, that this property is enabling all the three response action "Reply"."Reply all" and "forward" at once. As per my requirement i want to hide option"reply all" and "forward" from there. 

 

Regards

Sukirti

Mark Stanger
Giga Sage

You're in good hands with Brian helping you on this one but I'd be curious to see a screenshot of the actual UI elements you want to remove.  I don't think this is an out-of-box behavior.

I had activated it to test whether it works on UI 15 interface or not. As per my expectation i worked correctly for UI15,  below is the screenshot:

 

find_real_file.pngThe issue remains with UI16.

 

Regards

Sukirti