I have created Visual force page on my custom object and add a custom button to it and when the user clicks on the custom button (opening VFP)

the page is opened in New tab, but the Tab title is set as External Page.

How can I change and add custom_object__c.Name in the title ?

2 Answers 2


i able to found the solution finally: source

<apex:includeScript value="/support/console/20.0/integration.js"/>
    <script type="text/javascript">
        function testSetTabTitle() {
            //Set the current tab's title
            sforce.console.setTabTitle('Lead: {!Lead.Name}');
        var pageLoad = window.onload;
          window.onload = function() {
                if (pageLoad) {

Does your VF page have its title attribute set on the <apex:page> tag?

<apex:page standardController="CustomObject__c" title="{!CustomObject__c.Name}" >

Related <apex:page > documentation


Looks like you've got to do this with the Console Integration Toolkit in your VF page markup.

//Sets the title of the current tab to "SFDC"
function setTitle() {

Documentation: Sample Visualforce Page Using the Salesforce Console Integration Toolkit

  • still get the External Page but remember my app is a service cloud console
    – Nick
    Apr 8, 2016 at 22:51
  • opens the vf page in tab within the console app
    – Nick
    Apr 8, 2016 at 23:03
  • @NickKahn corrected/updated the answer.
    – Mark Pond
    Apr 8, 2016 at 23:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .