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 Post

Salesforce Spring '26 Release High level points

Get the record Count of all countable Sobjects in Salesforce

Fetch record type-specific picklist values directly in Apex