Answered by:
CRM 2011: How to change tooltip for fields on form?

Question
-
In CRM 4.0 you could change the tooltip for a field (i.e., the text that appears when you hover the cursor over the field label) using JScript:
crmForm.all.<field name>_c.title = 'Tooltip text';
crmForm.all.<field name>_d.title = 'Tooltip text';
I can't figure out how to achieve the same thing in CRM 2011. Thoughts?Friday, May 20, 2011 5:34 PM
Answers
-
Hi
You need to export the form xml and then update the form xml. The tag you are looking for is
<ToolTip>
<Titles />
</ToolTip>
For more reference please see the SDK: http://msdn.microsoft.com/en-us/library/gg334365
and also : http://msdn.microsoft.com/en-us/library/gg309605.aspx and specifically: http://msdn.microsoft.com/en-us/library/gg327975.aspx
Thanks and Regards
AniMandal
- Proposed as answer by AniMandal Friday, May 20, 2011 7:59 PM
- Unproposed as answer by AniMandal Friday, May 20, 2011 8:00 PM
- Marked as answer by Andrii ButenkoMVP, Moderator Wednesday, August 8, 2012 6:05 AM
Friday, May 20, 2011 7:59 PM
All replies
-
Hi
You need to export the form xml and then update the form xml. The tag you are looking for is
<ToolTip>
<Titles />
</ToolTip>
For more reference please see the SDK: http://msdn.microsoft.com/en-us/library/gg334365
and also : http://msdn.microsoft.com/en-us/library/gg309605.aspx and specifically: http://msdn.microsoft.com/en-us/library/gg327975.aspx
Thanks and Regards
AniMandal
- Proposed as answer by AniMandal Friday, May 20, 2011 7:59 PM
- Unproposed as answer by AniMandal Friday, May 20, 2011 8:00 PM
- Marked as answer by Andrii ButenkoMVP, Moderator Wednesday, August 8, 2012 6:05 AM
Friday, May 20, 2011 7:59 PM -
Hi
I just realised that you want a dynamic way of changing the tooltip.
using title is an unsupported way of dynamically changing the tooltip. crmForm.all.<field name>_c.title or crmForm.all.<field name>_d.title is not valid in CRM2011 and the SDK doesn't seem to have any replacement for title.
Please see this thread for an alternate hack, that might just work in CRM2011. Please see the post marked as answer.
http://social.microsoft.com/Forums/en-US/crmdevelopment/thread/9b5bd5c2-c951-4a26-96d9-db2370ca2c6f
Thanks and Regards
AniMandal
- Proposed as answer by AniMandal Friday, May 20, 2011 8:34 PM
Friday, May 20, 2011 8:34 PM -
Actually, I discovered that the code used in CRM 4.0 also works in CRM 2011, despite all the changes to the SDK. Here's a sample that we've implemented:
// Tooltips for picklist/option set values
crmForm.all.<attribute>.childNodes[1].title = 'Option1 Text';
crmForm.all.<attribute>.childNodes[2].title = 'Option2 Text';
crmForm.all.<attribute>.childNodes[3].title = 'Option3 Text';
// Tooltips for attribute/value labels
crmForm.all.<attribute>_c.title = "Enter the tooltip text here.";Monday, June 27, 2011 6:06 PM -
Hi all,
Is there any limit for characters in Tool tips?
Thursday, July 21, 2011 8:39 AM