function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
astraeaastraea 

Filtered related list

Hi all,

 

My "Lead" has a related list called "Interest". It's a custom object.

 

Interest has a custom field called "isActive". It's a checkbox.

 

What I would like to do are

 -- if isActive is true, that Interest item is shown on the related list.

 -- if isActive is false, that Interest item is not shown on the related list.

 

I know that I can customize what field I show on Lead layout page.

I can choose fields, ex Name,Code,isActive and so on.

 

But I can't find the filtering setting.

 

Is there that setting?

 

If yes, where?

If no, how can I make filtered related list?

 

By VisualForce page?

If so, how can I set on Lead layout page?

 

Thanks,

astraea

Best Answer chosen by Admin (Salesforce Developers) 
PratibhPratibh

Hi,

 

Create a VisualForce page which shows 'Active' Interest Object record related to current lead  in a table and create a section on Lead PageLayout and add this Visual force page to it.   

 

This could help u to achieve requirement.

All Answers

PratibhPratibh

Hi,

 

Create a VisualForce page which shows 'Active' Interest Object record related to current lead  in a table and create a section on Lead PageLayout and add this Visual force page to it.   

 

This could help u to achieve requirement.

This was selected as the best answer
astraeaastraea

Hi Pratibh,

 

Thank you!

I've done!

 

astraea