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
SyllingerSyllinger 

How do I change the name of a many-to-many junction object for each Page Layout?

I am currently creating many-to-many relationships through the use of a junction object, but I would like to modify the name of the relationship depending on which page layout the user views it in.

 

For example,

 

If I have accounts, and I want to link cases to them in a many-to-many fashion, I create the junction object with the two master-detail lists.  I then want to name this object the same name as one of the relationships, i.e. a case or account name, and display whichever is the opposite of the record that the user navigated from.

 

To this effect, if the user navigates to the Accounts page and views the junction objects attached to the account their names would correspond to each case that has been related to that account.

 

Conversely, if the user is viewing the junction object from the Cases page, the various junction objects that are attached to that case will take on the name of the Accounts in the relationship.

 

Is this possible?