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 

I tried the following in UI script but it didn't work.
Do you know what's wrong?

 

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 

did that alert come?

are you using correct html element?

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

There was no alert.

@bonsai 

may I know which buttons you want to hide from that page?

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

 

 

This is the screen that appears when you click "Edit..." in the "Group Members" related list of a group record.

gmen_fil2.JPG