2

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 ?

1

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) {
                        pageLoad();
                }
                  testSetTabTitle();
          }
    </script>
| improve this answer | |
0

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


Update

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() {
    sforce.console.setTabTitle('SFDC');
}

Documentation: Sample Visualforce Page Using the Salesforce Console Integration Toolkit

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.