Can I hide the filters on the Slushbucket screen?

bonsai
Mega Sage

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?

g_men_fil.JPG

20 REPLIES 20

Ankur Bawiskar
Tera Patron
Tera Patron

@bonsai 

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 

AnkurBawiskar_0-1747207009580.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

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

bonsai
Mega Sage

@J Siva 

@Ankur Bawiskar 

 

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;
    }
}

@bonsai 

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.

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