Dec 07 2007

How To Add The Contact Phone # To The Form Title Bar

Here’s an easy to implement customization that can save users time & clicks. We’re going to force CRM to put a Contacts phone number in the form Title bar, enabling users to view History, Activities, Opportunities, etc., all the while having a view of the phone number:

Phone # To Title Bar

To accomplish this, go to the Contact form customization and modify the onLoad event.

Paste in this text:

var phone1 = “Unknown Phone #”;
if (crmForm.all.telephone1 != null) {

if (crmForm.all.telephone1.DataValue != null)
{
phone1 = “Phone # ” + crmForm.all.telephone1.DataValue;
}
document.title =document.title + ” ” + phone1;
}

Make sure you enable the event and test it using the Preview Create option. Your form’s title bar should display “Unknown Phone#”.

Pretty simple yet very functional!

Trackback URI | Comments RSS

Leave a Reply