Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Change Title of the page

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm wanting to change the title of the page because it has user-related information which I don't want to get stored in the browser. Attaching the snapshot to explain what I'm trying to do. Any help would be appreciated. 

Screen-Shot-2019_2D00_03_2D00_25-at-1.21.29-PM.png

I want to change 'Client: Franklin, Benjamin' to just 'Client Information'. 

 

  • Verified answer
    gdas Profile Picture
    gdas 50,089 on at
    RE: Change Title of the page

    Hi Rabbel ,

    Try with this  -

    parent.top.document.title = "Some Title";

    I tested from my end its working , see below - 

    6281.title.PNG

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Change Title of the page

    Also I looked into the page source code and found 4 <title> tags and 10 <html> tags.  any thoughts

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Change Title of the page

    @blue Wang, I tried to use method 1 you'd suggested.

    // Code I'm using 

    function checkStartDate(context) {

    document.getElementsByTagName("title")[0].innerText = 'Client Information123';

    document.title = 'Client Information1';

    };

    and It gave an error 

    Screen-Shot-2019_2D00_03_2D00_26-at-9.39.53-AM.png

  • Blue Wang Profile Picture
    Blue Wang on at
    RE: Change Title of the page

    Hi Rabbal,

    1.Native(note: not using innerHTML but innerText):

    document.getElementsByTagName("title")[0].innerText = 'Client Information'; 
    document.title = 'Client Information';

    2.JQ:

    $('title').html('Client Information');
    $('title').text('Client Information');

    3. Use this in Page_Load code

    this.Text="Client Information";



  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Change Title of the page

    hey Adrian,

    I tried with document.title but its coming null. Do you mind sharing the code snippet which I should use to change it?

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 1,019 Super User 2025 Season 1 on at
    RE: Change Title of the page

    Hi Rabbal,

    I posted the wrong link originally. The original link I posted was for supported code to manipulate tabs on a Dynamics CRM form. I have changed this to the correct link.

    This is the correct link. This JavaScript code will work for old and new versions of Dynamics CRM, but it is unsupported as it leverages an undocumented internal function and may not work in future versions of Dynamics 365 for Customer Engagement.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Change Title of the page

    Hey

    Thanks for the suggestion. I've already tried this method but it didn't work. It changes the tab section title and not the browser tab title.

    Also, when you said it's not supported then what did you mean? Does it work only for old version of dynamics or it doesn't work at all?

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 1,019 Super User 2025 Season 1 on at
    RE: Change Title of the page

    Hi Rabbal,

    You can change the display name of a tab with JavaScript using this method, but it is not supported. This method will require you to execute the JavaScript when the form loads.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Change Title of the page

    Can we do something using javascript to change the displayed content?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Change Title of the page

    Thanks for your suggestion. But I need to save client name. Are you suggesting to save client name in another field and leave this default field blank?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans