locked
Setting the Form Title RRS feed

  • Question

  • Does anyone know how to set the mscrm form title. I'm not talking about the javascript document.title, i'm talking about the title that displays to the right of the entity icon...for exmple:

    Contact: John Doe

    is it possible to change this or add more info to it?
    Friday, December 18, 2009 7:01 PM

Answers

  • WARNING:::: THIS IS UNSUPPORTED :::::WARNING

    var

     

     

    listSpans = document.getElementsByTagName("span");  

        for (var i = 0; i < listSpans.length; i++) {

         

     

    if (listSpans[i].className == "ms-crm-Form-Title") {

            listSpans[i].innerHTML =

       "NEW TITLE HERE"; 

            break;

          }

    }

     

    • Marked as answer by trallan Friday, December 18, 2009 11:23 PM
    Friday, December 18, 2009 11:20 PM

All replies

  • Hi Trallan,

    The form title is the 'primary field' of the entity.  In the case of contacts, the primary field is the 'full name'.  With a custom entity, we often create the 'name' field via javascript so more info is then displayed in the title.

    Alternatively, in an unsupported way, you could modify the html and thus over ride anything in the form. 

    Alex Fagundes - www.PowerObjects.com
    Friday, December 18, 2009 7:12 PM
  • WARNING:::: THIS IS UNSUPPORTED :::::WARNING

    var

     

     

    listSpans = document.getElementsByTagName("span");  

        for (var i = 0; i < listSpans.length; i++) {

         

     

    if (listSpans[i].className == "ms-crm-Form-Title") {

            listSpans[i].innerHTML =

       "NEW TITLE HERE"; 

            break;

          }

    }

     

    • Marked as answer by trallan Friday, December 18, 2009 11:23 PM
    Friday, December 18, 2009 11:20 PM
  • You can change the CRM form title on Form onload By using javascript function

    You have to include firstly Jquery as web resource.

    and call this function on form onload event

    function changelabel() {
     
       var title= $(".ms-crm-Form-Title-Label");
       if (title != null) {
           title[0].innerHTML = "MY CUSTOM TITLE";
       
       }
    }

    Saturday, December 22, 2012 7:35 AM