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
Tyrell Roberts 10Tyrell Roberts 10 

Default new page showing even after overriding new standard action with visualforce page not

I'm trying to override the standard new action for the Product object with a visualforce page. I create the page, and made sure to override the action in "Button, Links, and Action". However, when I click the new button on my Product detail page, which also is a visualforce page that overrides the view action, it still shows the default new action page and not my visualforce one. 

Here is where I overrided the actions with visualforce pages:

User-added image
Here is my visualforce page for the detail view:
User-added imageAnd here is my visualforce page which is supposed to override the new action:
User-added image
 
Dushyant SonwarDushyant Sonwar
Hi ,

It is not possible to override the new button of standard product object.
I would suggest you to create a custom button New ,add it on layout and remove the standard new button from layout 

Hope this helps!
Dushyant SonwarDushyant Sonwar
You cannot override product object new button as it is a salesforce limitation.
Dushyant SonwarDushyant Sonwar
Change it to below

{! URLFOR( “/apex/ProductNew” ) } in the action attribute for new button in Product Detail view page.