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
Surabhi Menon 2Surabhi Menon 2 

Unable to override "New" button in Product2 object

Hi All,

I had a requirement of redirecting the user to a VF page upon record type selection in Product2 object.

I overrided the New button with a VF page and a corresponding extension class. However the redirection was happening only upon clicking buttons like "Cancel" and "Save" and not upon clicking "Continue" button post record type selection.

I tried replacing the Product2 object with Case in the code just to ensure that the logic was fine in my code and it was working fine.

Please help me out in this.

 
Best Answer chosen by Surabhi Menon 2
EldonEldon
Hi Surabh you can try overridding add button instead of new.