web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Is it possible to chan...
Power Pages
Answered

Is it possible to change the lookup on hover label in Dynamics Portal?

(0) ShareShare
ReportReport
Posted on by 84

When you move the cursor over a lookup field icon, text appears.  I want to change this text.  Since the text is in Dutch, there might be a translation that I can adjust?  Or is there any way to overrule this?

dynamics community ticket.png
Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,455 Most Valuable Professional on at

    That text is taking the default language of your Portal, but in case you have multi language setup, you should see the translated text.

    I was just playing around with a few things here but there doesn't seem to have any configuration available to change the text.

    Two things here:

    1. You can raise a support ticket with Microsoft, but I don't think that would be a simple option to be added
    2. As a workaround, you can add JavaScript to set the text you want (pro-tip: keep the label in a content snippet, so just one code and this will pick the snippet for the language selected)

     

  • JeroenJanssens Profile Picture
    84 on at

    Any pointers on how I can achieve this with javascript?

  • oliver.rodrigues Profile Picture
    9,455 Most Valuable Professional on at

    I was just playing around here and got a good solution

     

    Create the snippet:

     

    OliverRodrigues_1-1669197053422.png

     

    I created a generic function for this:

    function SetLookupLaunchTooltip(fieldname, tooltip) {
     if (!!!tooltip) {
     tooltip = "{{ snippets['Default Lookup Launch Tooltip']}}";
     }
    
     var lookupLunchButton = $("#" + fieldname + "_entityname").next().find("button.launchentitylookup");
    
     lookupLunchButton.attr("data-original-title", tooltip);
     lookupLunchButton.attr("aria-label", tooltip);
     lookupLunchButton.find("span.sr-only").text(tooltip);
    
    };
    
    

     You can use it like this:

    SetLookupLaunchTooltip("cr285_customerlookup");
    // or
    SetLookupLaunchTooltip("cr285_customerlookup","hello world");

     

    OliverRodrigues_0-1669197013035.png

     

    If you want, you can probably apply this to any lookup on the page by adding the code to the Tracking Code snippet. 

  • JeroenJanssens Profile Picture
    84 on at

    Thanks.  I understand what this function does and I have added all this but it still shows the original value.  If I look at the html code, the tooltip is not on the field but on the button.  Maybe that's the reason it's not working?

     

    JeroenJanssens_0-1669199195261.png

     

  • JeroenJanssens Profile Picture
    84 on at

    I had made a small mistake (adding _name to the fieldname parameter).  The function now does part of the job: aria-label and sr-only are adjusted but the data-original-title is not?

     

    JeroenJanssens_0-1669200316530.png

     

  • Verified answer
    oliver.rodrigues Profile Picture
    9,455 Most Valuable Professional on at

    it seems that while the lookup is empty, the tooltip is held at a "title" attribute, and not "data-original-title"

     

    give it a go adding also the attribute "title", for example:

     lookupLunchButton.attr("data-original-title", tooltip);
     lookupLunchButton.attr("title", tooltip);

     

  • JeroenJanssens Profile Picture
    84 on at

    that did it!  Thanks!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 53

#2
DP_Prabh Profile Picture

DP_Prabh 40

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 28 Most Valuable Professional

Last 30 days Overall leaderboard