On Custom Button VF page Open in new Tab

{!REQUIRESCRIPT("/soap/ajax/15.0/connection.js")}

var accId="{!Account.Id}";

window.open("/apex/vfpageName?id="+accId,"mywindow");

Comments

Popular posts from this blog

Salesforce Spring 16 Release Exam (Maintenance Exam Q&A) for Developer 201 Admin

Show Hyper Link On Add Error in Salesforce Trigger

Show the Success Message before Redirecting the Detail page on Visualforce Page