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.
Solved! Go to Solution.
Hi @Cris2
$( 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!
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!
Hi @Cris2
$( 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!
Thanks
Inspect element screenshot
I added the below script to Advanced form step -> Form options -> Customer Javascript:
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!
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.