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
Mike_M_2Mike_M_2 

Custom New Opportunity Related List button.

Our standard 'New Opportunity' button is overriden to invoke a visualforce page. Can I create a different 'New Opportunity' button for use only on the Account screen's Opportunity Related List which does NOT invoke that invoke that same visualforce page. 
Button intended for Account Screen's Opportunity Related ListThe above imiage shows a button which is intended for the Opportunity Related List on the Account screen. I have successfully place this button there. The problem is that when I click on the button the visualforce page defined on the standard New opportunity button still gets launched. 
Here is the overridden Stanard New Opportunity button.
Shows Standard Button is overriden with VF pageShows how Standard New button is defined with override VFSo, again, even though New2 button is on the related list, the "OpportunityCreate" visualforce page is still invoked. 
Hopefull this is clear., 
thanks
 
Best Answer chosen by Mike_M_2
Nikhil_KhetanNikhil_Khetan
Hi Mike.

Try adding nooverride=1 as a parameter in your New2 button.


Thanks,
Nikhil
Please mark this as best answer if you find my answer's helpful.
 

All Answers

Nikhil_KhetanNikhil_Khetan
Hi Mike.

Try adding nooverride=1 as a parameter in your New2 button.


Thanks,
Nikhil
Please mark this as best answer if you find my answer's helpful.
 
This was selected as the best answer
Mike_M_2Mike_M_2
That works, Thanks!