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

@bonsai 

So you don't want Edit button?

OR

You want it to be seen but on the next screen want to disable some buttons? which ones from below?

AnkurBawiskar_0-1747985632771.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 

the script I shared few years ago which you are using, worked fine for me and it disabled the 2 buttons

AnkurBawiskar_1-1747985909738.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

If possible, I would like to hide all the red frames.

 

gmen_fil3.JPG

@bonsai 

this worked for me well

addLoadEvent(hideButtonsAdd);

function hideButtonsAdd() {
    if (document.URL.indexOf('sys_m2m_templatesys_target=sys_user_grmember') != -1 || document.URL.indexOf('sysparm_collection_related_relationship=sys_user_grmember.group') != -1) {

		// the 1st 4 line of code disables
        // gel("_add").disabled = true;
        // gel("_run").disabled = true;
        // gel("select_0_filter_row").disabled = true;
        // gel("select_0_filters_row").disabled = true;
        gel("select_0_filter_row").style.display = 'none';
        gel("select_0_filters_row").style.display = 'none';
    }
}

Output:

AnkurBawiskar_0-1748249571408.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

For some reason it doesn't work on my screen...

The URL is as follows:
https://devxxxxxx.service-now.com/sys_m2m_template.do?sys_is_list=true&sys_is_related_list=true&sys_... llection_related_file=sys_user&sysparm_collection_related_relationship=sys_user_grmember.group&sysparm_collection_relationship=&sysparm_fixed_query=&sysparm_group_sort=&sysparm_list_css=&sysparm_m2m_ref=sys _user_grmember&sysparm_query=&sysparm_referring_url=sys_user_group.do%3fsys_id%3d019ad92ec7230010393d26 5c95c260dd%4099%40sysparm_record_target%3dsys_user_group&sysparm_stack=no&sysparm_target=&sysparm_view=