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

Notifications

Announcements

Community site session details

Community site session details

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

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?

Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,368 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,368 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,368 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard