You need to sign in to do that
Don't have an account?
Sfdc11
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.
Thanks
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.
<apex:commandButton action="{!save}" value="Save" onclick="window.open('http://www.w3schools.com')" />
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..
/500/e?retURL=%2F500&saveURL=apex/VFPage?scontrolCaching=1&Id={!case.AccountId}";