Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Hide Image Activities from RITM

Deepak Shaerma
Mega Sage

Hi Community,

I would like to know if it’s possible to hide attachment activities from the RITM. Although they appear in the activity filter, my goal is to completely hide all attachments for a specific catalog item.

Any guidance on how to achieve this would be greatly appreciated.


Thanks in advance!

Snaps for the Reference!!

Screenshot 2025-11-07 at 4.40.07 PM.png

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@Deepak Shaerma 

You can show/hide attachments but not based on some condition

Simply remove the Attachments from Activity Filter Fields

1) click on Funnel Icon and Click Configure Fields

AnkurBawiskar_0-1762516470178.png

 

2) Remove attachments from Right to Left bucket

AnkurBawiskar_1-1762516496457.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron

@Deepak Shaerma 

You can show/hide attachments but not based on some condition

Simply remove the Attachments from Activity Filter Fields

1) click on Funnel Icon and Click Configure Fields

AnkurBawiskar_0-1762516470178.png

 

2) Remove attachments from Right to Left bucket

AnkurBawiskar_1-1762516496457.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Ankur Bawiskar
Tera Patron

@Deepak Shaerma 

if you want to hide it based on particular catalog item then you need to use onLoad client script + DOM manipulation

You need to identify the correct HTML element and then hide that

Note: DOM manipulation is not recommended

AnkurBawiskar_2-1762516719958.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Ankur Bawiskar
Tera Patron

@Deepak Shaerma 

this onLoad client script + DOM worked for me

try that

Ensure "Isolate Script" field is marked as False for your client script so that DOM is allowed

AnkurBawiskar_0-1762518617233.png

Note: you can enhance this logic to check if the RITM is belonging to particular Item or not and then hide

function onLoad() {

    setTimeout(function() {
        $j('#sn_form_inline_stream_entries li.h-card.h-card_md.h-card_comments').each(function() {
            var spanText = $j(this).find('span').text();
            if (spanText.includes('Image uploaded') || spanText.includes('Attachment uploaded')) {
                $j(this).hide();
            }
        });
    }, 2000);

}

Output:

AnkurBawiskar_1-1762522211158.gif

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

@Deepak Shaerma 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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