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
Sfdc11Sfdc11 

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...

 

 

 

 

souvik9086souvik9086

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.

Thanks

Vinita_SFDCVinita_SFDC

Hello,

 

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.

Rahul_sgRahul_sg
Try this:
<apex:commandButton action="{!save}" value="Save" onclick="window.open('http://www.w3schools.com')" />

change your onclick URL
Sfdc11Sfdc11

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..

/500/e?retURL=%2F500&saveURL=apex/VFPage?scontrolCaching=1&Id={!case.AccountId}";