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
CTU007CTU007 

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?

 

Thanks.

NBlasgenNBlasgen

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

 

http://community.salesforce.com/sforce/board/message?board.id=general_development&message.id=37207

 

http://www.forcetree.com/2009/07/overriding-standard-buttons-with.html

 

or just google it like I did.