locked
Tooltip for lookup field in CRM 2011 RRS feed

  • Question

  • HI

    i have look up field in CRM .How can i change the existing tool tip message for this look up field using javascript?

    Regards,
    Vinay

    Tuesday, June 25, 2013 9:10 AM

Answers

  • Hi Vinay,

    If you want tooltip for lookup button then get the id and use the following , In the place of field_name you  can pass the lookup button id. In the Place of tooltip text you can add what ever text you want.

    You can call that function on onload.

    document.getElementById("field_name").setAttribute("title", "tooltip text");

    To modify a field label tooltip (which I believe all field types have), use the following Javascript:

    document.getElementById("field_name_c").setAttribute("title", "tooltip text");
    To modify a lookup button tooltip (lookup fields have two tooltips, one for the label and one for the button), use the following Javascript:

    document.getElementById("field_name").setAttribute("title", "tooltip text");
    The "_c" appended to the end of the internal name of the field stands for "caption", and is therefore associated with the label HTML element of that field. In the case of lookup fields specifically which have the second additional tooltip, the exact internal name of the field matches the id of the lookup button HTML element.

    Otherwise see this link, There you will get clarify.

    http://stackoverflow.com/questions/9934482/is-it-possible-to-modify-crm-2011-tooltips.

    If this is useful to then mark as a answer.

    Thanks,

    Sravan J


    • Edited by sravan J Tuesday, June 25, 2013 10:04 AM to add some more information
    • Proposed as answer by BHUM MSCRM Tuesday, June 25, 2013 10:28 AM
    • Marked as answer by Vinay Kumar Inavolu Friday, June 28, 2013 1:55 AM
    Tuesday, June 25, 2013 10:01 AM
  • Tuesday, June 25, 2013 10:29 AM

All replies

  • Hi Vinay,

    If you want tooltip for lookup button then get the id and use the following , In the place of field_name you  can pass the lookup button id. In the Place of tooltip text you can add what ever text you want.

    You can call that function on onload.

    document.getElementById("field_name").setAttribute("title", "tooltip text");

    To modify a field label tooltip (which I believe all field types have), use the following Javascript:

    document.getElementById("field_name_c").setAttribute("title", "tooltip text");
    To modify a lookup button tooltip (lookup fields have two tooltips, one for the label and one for the button), use the following Javascript:

    document.getElementById("field_name").setAttribute("title", "tooltip text");
    The "_c" appended to the end of the internal name of the field stands for "caption", and is therefore associated with the label HTML element of that field. In the case of lookup fields specifically which have the second additional tooltip, the exact internal name of the field matches the id of the lookup button HTML element.

    Otherwise see this link, There you will get clarify.

    http://stackoverflow.com/questions/9934482/is-it-possible-to-modify-crm-2011-tooltips.

    If this is useful to then mark as a answer.

    Thanks,

    Sravan J


    • Edited by sravan J Tuesday, June 25, 2013 10:04 AM to add some more information
    • Proposed as answer by BHUM MSCRM Tuesday, June 25, 2013 10:28 AM
    • Marked as answer by Vinay Kumar Inavolu Friday, June 28, 2013 1:55 AM
    Tuesday, June 25, 2013 10:01 AM
  • Tuesday, June 25, 2013 10:29 AM