Need to add filter in related list

geet
Tera Guru

Hi All,

 

I have a Change Request related list on Release form as follows:

find_real_file.png

I don't want users to select those changes whose STATE = RFC LOGGING & CHANGE ASSESSMENT. when they click on EDIT button to select changes.

What i did is, i opened this related list and added a filter as follows:

find_real_file.png

But this is not working.

As when i click on edit button in change related list , no filter is reflecting:

find_real_file.png

 

Please suggest how should i achieve this !!

5 REPLIES 5

Brendan Hallida
Kilo Guru

Heya,

I think that this is what you are after 🙂

https://docs.servicenow.com/bundle/jakarta-platform-user-interface/page/use/using-forms/task/t_Creat...

 

Cheers,

Brendan

Hi Brendan,

 

Thanks for reply.

This has helped me.

But one more thing i need to do here is:

I dont want users to touch this filter:

find_real_file.png

 

As when i tested this while impersonating with a normal user, then i found that user can just click on that cross button and can then find all the changes with state RFC logging and change assessment.

 

So, i want to make this filter non-editable, is it possible?

Hi Geet,

You might want to have a look at the below thread. This explains on how to modify the filter in slush bucket view using Global UI script. Even though you are able to provide filter roles to not show the filter to users, once they click on Edit and go to slushbucket view, they will be able to edit the filter.

https://community.servicenow.com/community?id=community_question&sys_id=628253a1db101fc01dcaf3231f96...

 

Mahesh89
Tera Contributor

Procedure

  1. Navigate to the related list (example, Incidents on a problem record).
  2. Create the desired filter using the condition builder (example, [Active] [is] [true]).
  3. Click Set as Default Filter.