Thursday, 10 October 2013

Adding a custom tooltip to CRM 2011 entity field

Problem: I had requirement from user to add custom tooltip to drop down list (OptionSet) field on Entity form in CRM 2011.

Solution:

I knew that we have default tooltip for each option with in the OptionSet but here user wanted to have custom tooltip. So I had to write JavaScript to achieve this task.

On form load event you need to write following code to add the custom tooltip

crmForm.all.dropdownlistName.childNodes[0].title = 'Text to be displayed in tooltip';

So above code will display tooltip for the first option in OptionSet. Similarly you can add tooltip to any field on Entity form in CRM 2011.

This method works fine for me on CRM 2011 Rollup 13.

Thanks,

No comments:

Post a Comment