Can I hide the filters on the Slushbucket screen?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2025 11:50 PM
I have a filter set up on the screen where I assign group members to group records.
I don't want users to be able to adjust the filter
Is there a way to make the filter read-only or hidden?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2025 12:01 AM
Hi @bonsai
Check out the following community posts to hide the condition builder on the related lists.
https://www.servicenow.com/community/developer-forum/hide-filters-in-related-list/m-p/1599636
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2025 12:17 AM
I shared solution for something similar 4 years ago, check that and enhance it
How to hide Display filter after clicking edit button in related list
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2025 05:39 PM
Is it possible to hide the filter while keeping its effect?
This probably requires some DOM manipulation.
I tried creating the following UI script, but it didn't work.
addLoadEvent(hideButtonsAdd);
function hideButtonsAdd() {
if (document.URL.indexOf('sys_target=sys_user_grmember') != -1) // change the table name "problem" value as per the related list being used by you
{
alert("test");
gel("_add").disabled = true;
gel("_run").disabled = true;
gel("select_0_filter_row").disabled = true;
gel("select_0_filters_row").disabled = true;
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2025 08:19 PM
without DOM I already shared the approach and it involves updating the OOTB Button etc
How to hide Display filter after clicking edit button in related list
The UI script logic should work fine, provided you are picking the correct html element id
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader