How to hide related list item

Felipe Morais
Tera Contributor

Hello,

Is it possible to hide specific items from a related list? (not the entire related list, just selected records)
On RITM form, we have a related list from the sysapproval_approver table, in which the Approval/Estado field is update to "Approved" or "Not Requested Anymore" depending on the who was the approver user (from the approval group).

FelipeMorais_0-1702911011422.png
The requirement is to hide from the related list those approvals which are not requested anymore.

 

I know of the function g_form.hideRelatedList('related_list_table_name'), but this hide the whole related list, and i need to hide only some items, is it possible to do it in servicenow?

Thanks!!
FLM

1 ACCEPTED SOLUTION

AshishKM
Kilo Patron
Kilo Patron

Hi @Felipe Morais ,

You can update the filter condition for this related list and get the required result only.

 

Navigate as below System UI -> Related Lists

 

AshishKMishra_1-1702912373893.png

 

AshishKMishra_3-1702912409897.png

 

AshishKMishra_0-1702912330241.png

 

-Thanks,

AshishKMishra


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

View solution in original post

1 REPLY 1

AshishKM
Kilo Patron
Kilo Patron

Hi @Felipe Morais ,

You can update the filter condition for this related list and get the required result only.

 

Navigate as below System UI -> Related Lists

 

AshishKMishra_1-1702912373893.png

 

AshishKMishra_3-1702912409897.png

 

AshishKMishra_0-1702912330241.png

 

-Thanks,

AshishKMishra


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution