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

Override New to open New Tab

Hi All,


I need to open a Vf page in a new tab on click of save a Case.


If I use SaveURL for Vf page,it redirects to vf page after save on same window itself but not on new tab..


Is this possible??? Help me out on this...






Is the Case save button standard or custom button? If it is a standard button, then you can't handle it. If it is a custom button then you can write like this

<apex:commandButton action="{!saveCase}" value="Save" target="_blank"/>


If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.





Unfortunately it is not possible to override standard Save button.

Only some standard buttons can be overridden. For example, you cannot override the Save or Sharing buttons, but you can override New, View, Edit, and Delete buttons.


Work around is to override the case detail page with a visual force page and create a custom save button and then customize it.

Try this:
<apex:commandButton action="{!save}" value="Save" onclick="'')" />

change your onclick URL

Hi Rahul,


We are using Standard Case Page/Pagelayout only, Since it's not VF page ,I cant try with commandbutton right..


I've overridden New Button ,tried like this but it wrk out as expected..