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 / Change lookup tooltip ...
Power Pages
Unanswered

Change lookup tooltip from 'Launch lookup modal' to customised text

(0) ShareShare
ReportReport
Posted on by 88

How can I change the tooltip text for the lookup icon from 'Launch lookup modal' to a customised text?

 

I guess there is some liquid code / Javascript.

 

Cris2_0-1632490843151.png

 

Categories:
I have the same question (0)
  • H V Profile Picture
    1,510 on at

    Hi @Cris2 

     

    Can you please share inspect element screen shot of that search button?

  • Verified answer
    H V Profile Picture
    1,510 on at

    Hi @Cris2 

     

    • Go to Your Basic Form
    • Click on Additional Settings
    • Add below code in Custom JavaScript
    $( document ).ready(function() {
     $(".btn.btn-default.launchentitylookup").attr("data-original-title","Your tooltip");
     $(".btn.btn-default.launchentitylookup").attr("title","Your tooltip");
     $(".btn.btn-default.launchentitylookup").attr("aria-label","Your tooltip");
    });

     

    Replace your tooltip texts with "Your tooltip".

     

    --------------------------
    If you like this post, give a Thumbs up. Where it solved your query, Mark as a Solution so it can help other people!

  • Cris2 Profile Picture
    88 on at

    Thanks

     

    Inspect element screenshot

    Cris2_0-1632667550753.png

    I added the below script to Advanced form step -> Form options -> Customer Javascript:

    $(document).ready(function() {
    $(".btn btn-default launchentitylookup").attr("data-original-title","Your tooltip");
    $(".btn btn-default launchentitylookup").attr("title","Your tooltip");
    $(".btn btn-default launchentitylookup").attr("aria-label","Your tooltip");
    });
    Unfortunately, it did not work. Not sure if the space between 'btn btn' could be the issues.
     
    Help please.
  • Cris2 Profile Picture
    88 on at

    Hi 

     

    I wouldn't mind hiding the tooltip, if this doesn't work.

     

    Thanks

  • Cris2 Profile Picture
    88 on at

    Apologies, I had amended the code you had provided instead of just using it.

     

    It has worked! Thanks and much appreciated!

  • Cris2 Profile Picture
    88 on at

    One last question. 

     

    If a page has more than one lookup field, how do I add a specific tooltip.

     

    Thanks

  • Verified answer
    H V Profile Picture
    1,510 on at

    Hi @Cris2 

     

    You can write specific tooltip for lookup using below code:

     

    $( document ).ready(function() {
    	$($("#regardingobjectid").next().next()).find(".btn.btn-default.launchentitylookup").attr("data-original-title","Your tooltip");
    	$($("#regardingobjectid").next().next()).find(".btn.btn-default.launchentitylookup").attr("title","Your tooltip");
    	$($("#regardingobjectid").next().next()).find(".btn.btn-default.launchentitylookup").attr("aria-label","Your tooltip");
    });

     

     

    Please replace regardingobjectid text with your lookup field logical name.

    Let me know if there is any issue.

     

    --------------------------
    If you like this post, give a Thumbs up. Where it solved your query, Mark as a Solution so it can help other people!

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