+ Start a Discussion
Pradhyumn BansalPradhyumn Bansal 

How to Override a New button of related List of Page with no changes in new Button of my Child Object

Hi all,
I have A custom object Goals__c and have a lookup of goals in contact standard object. When i am show the related List on Contacts Detail Page
I Want to Override the New Goals Button.
User-added image 
But i does not want to change my Goals__c Object new standard Button.
User-added image
is there any method to change redirection of VF page only on contact Goal__c  related list new Goals button. where as my Goal__c new button still set on standard VF page.
Best Answer chosen by Pradhyumn Bansal
Bhargavi TunuguntlaBhargavi Tunuguntla
Hi Pradhyumn,

Yes this is possible .Just create a List button on Goal__c and in Contact Page layout in the Golas related list add the button.

For now I considered Account and contact for an sample Example:

Create List button on contact: (redirect to vf page there)
User-added image
Now edit the Account page layout move to the contact related list:
User-added image
Click on wrench then opens a popup:
User-added image
Expand buttons there,and now you can add the custom button to 'Selected Buttons' and remove the Standard button by unchecking on the checkbox.

Hope this will be useful.
Thanks.

All Answers

Bhargavi TunuguntlaBhargavi Tunuguntla
Hi Pradhyumn,

Yes this is possible .Just create a List button on Goal__c and in Contact Page layout in the Golas related list add the button.

For now I considered Account and contact for an sample Example:

Create List button on contact: (redirect to vf page there)
User-added image
Now edit the Account page layout move to the contact related list:
User-added image
Click on wrench then opens a popup:
User-added image
Expand buttons there,and now you can add the custom button to 'Selected Buttons' and remove the Standard button by unchecking on the checkbox.

Hope this will be useful.
Thanks.
This was selected as the best answer
Pradhyumn BansalPradhyumn Bansal
Hi Bhargavi Tunuguntla,

Sorry for Late Reply but i  successfully implemented that method.

Thanks for answering