cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Cris2
Helper II
Helper II

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

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

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
hardikv
Solution Sage
Solution Sage

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!

View solution in original post

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!

View solution in original post

7 REPLIES 7
hardikv
Solution Sage
Solution Sage

Hi @Cris2 

 

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

hardikv
Solution Sage
Solution Sage

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!

View solution in original post

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.

Hi 

 

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

 

Thanks

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

 

It has worked! Thanks and much appreciated!

One last question. 

 

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

 

Thanks

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!

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,664)