+ Start a Discussion

after saving a child record, return to parent record, not child record

Hi, I know the standard "save" button will return to the new child record, after users click the "new" button on the related list to create a child record.


Eg, when users click "New Opportunity" on opportunity related list on an account record, and click "save" after entering data, the newly created opportunity will be displayed.


Now my users want in some situation, after saving, it should return to the parent record. How difficult is it to do this? Any sample code?




You can overwrite spectific standard buttons and change the pageRef argument.






or just google it like I did.