- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
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!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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
2) Remove attachments from Right to Left bucket
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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
2) Remove attachments from Right to Left bucket
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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
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:
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
