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
harsha B R 9harsha B R 9 

Standard Edit button in Junction object related list

Hi,

Business requirement :-
"Edit" standard button on the Junction object should take to the edit page of the master record insted of Junction object record.

How to achieve the above functionality?

Thanks & Regards,
Harsha BR
ANUTEJANUTEJ (Salesforce Developers) 
Hi Harsha,

As a Standard functionality, the edit button takes to the edit page of the object on which the button is placed.

You could override the button using a visualforce page but in that case you will have to keep the standard controller as the custom object but you will have to add extension to perform your functionality.

Please have a look at https://developer.salesforce.com/forums/?id=906F000000096v4IAA.

I hope this helps, looking forward for your response.

Regards,
Anutej
harsha B R 9harsha B R 9
Hi Anutej,

Thanks for your response.

It is a lightning implementation.

Regards,
Harsha BR
ANUTEJANUTEJ (Salesforce Developers) 
Oh, I tried checking and I found there is a standard component named related record have you checked this component??

I found the above mentioned component in below blog article:

>>https://www.simplysfdc.com/2018/03/salesforce-update-parent-record-with.html

Can you try checking the above article?
harsha B R 9harsha B R 9
Hi Anutej,

Article does not satisfy my requirement.

My requirement is open the edit page of Contact record from the AccountContactRelation junction object.

Thanks & Regards,
Harsha BR
neha singh 307neha singh 307
What is MBA Full Form, Course Duration, Eligibility, and Fee Structure? https://pradhanmantri.info/what-is-mba-and-its-full-form