In the Salesforce accounts object, there is an issue with the associated organizations being displayed. Currently, when a new associated organization is added to an account, regardless of whether or not the associated organization is marked as active or inactive, it is being displayed in the corresponding field on the Accounts details page for the organization (not the associated org).
In this field, only active associations should be displayed. In order to ensure this, I was initially thinking that I could put a trigger on the object itself to run a class method when an association is added to it, but it seems like this could only really be used to look through each of the associations after a new one is created, check if it is inactive, and if so, remove it as an association.
The issue with this approach is that it would cause the entire association to be delete when the requirement here is only that inactive associations not be displayed on the organization page.
How can inactive associations be prevented from being displayed?