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
dfiredfire 

"New" button label for junction object related list

I want to create a many-many relationship between Student and Class. I have a junction obj call StudentClassJunction which creates the link. Then I have a related list in Class called Students and a related list in Student called Classes.

 

Fine. However the "New" button on both of them says "New StudentClassJunction" which I obviously don't want. On the Classes related list on the Student record page I want it to say "New Class" and on the Students related list on the Class record I want it to say "New Student."

 

Any ideas how to do this?

 

Thanks.

Ankit AroraAnkit Arora

You can not change that. To do that you need to create custom list button with your desired name and on click of that button you should be redirected to the "new" page of StudentClass Junction.

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page