locked
Quick and simple question RRS feed

  • Question

  • The title/header of the lead form shows the customer last name as the header like Lead: LastName. Instead I want the companyname to be shown, how can it be done ?
    Friday, May 14, 2010 9:29 PM

Answers

  • In addition to what Mahain already said..I would also put null check as follows

    if (crmForm.all.companyname.DataValue!=null)
    {
    crmForm.document.title=crmForm.all.companyname.DataValue;
    }
    
    Saturday, May 15, 2010 7:13 AM

All replies

  • Hi,

    you can set crm form tiltle using "crmForm.document.title" so if you want to set companyname to it you can use this like

    crmForm.document.title=crmForm.all.companyname.DataValue;  //Just paste this line on lead form onload


    Mahain
    Saturday, May 15, 2010 5:30 AM
    Moderator
  • In addition to what Mahain already said..I would also put null check as follows

    if (crmForm.all.companyname.DataValue!=null)
    {
    crmForm.document.title=crmForm.all.companyname.DataValue;
    }
    
    Saturday, May 15, 2010 7:13 AM