related list

Gary Larsen
Mega Sage

I need a related list on Incident form. It should only list emails that the subject starts with P2 for that incident. if now emails we dont want the list to show at all

1 ACCEPTED SOLUTION

Patrick85
Kilo Sage

After you add the related list, right click on the list header & select Configure > List control. 

To hide the related list when it is empty, set 'Omit if empty' to true. 

 

To only show emails that have a subject starting with P2, you can add the filter to the related list then click 'Set as Default Filter.'  You may need/prefer to create a new sys_relationship though if you specifically want to include only emails that have a subject starting with P2 instead of just filtering down to show those by default. 

View solution in original post

2 REPLIES 2

GlideFather
Tera Patron

Hi @Gary Larsen,

 

to add related list, do it from context menu > configure > related tabs:

 

Screenshot 2026-03-04 at 21.46.43.png

 

to hide it, I am not entirely sure, but you can try with onLoad client script and with desired conditions:

 

g_form.hideRelatedList('name of the list');

Eventually get inspiration from How to hide the Related List based on the field value of the form or How to hide defined related list using script? 

 

Let me know how it's going.

_____
100 % GlideFather experience and 0 % generative AI

Patrick85
Kilo Sage

After you add the related list, right click on the list header & select Configure > List control. 

To hide the related list when it is empty, set 'Omit if empty' to true. 

 

To only show emails that have a subject starting with P2, you can add the filter to the related list then click 'Set as Default Filter.'  You may need/prefer to create a new sys_relationship though if you specifically want to include only emails that have a subject starting with P2 instead of just filtering down to show those by default.