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
Shweta GargShweta Garg 

Override edit button with Visualforce Page

Hi All,

I want to override edit button on Case detail Page as i wanted to hide the portal if i override the button it gets hide on Portal. for overriding i used standard controller with extension and on action of the page,this code is being executed.
 
PageReference p1 =new PageReference ('/500/e?nooverride=1&cas15='+record.Description+'&cas14='+record.Subject+'&00N4E000000cT43='+record.Z_Unknown_SN__c);
        p1.setRedirect(true);
        return p1;

If i use this method.I have to override every field on case detail Page and custom field id also varies from sandbox to Production.
What is the best solution for it.
Do i need to craete a separate vfpage for it?
I am confused .Please help me out.