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 / Change checkbox toolti...
Power Pages
Unanswered

Change checkbox tooltip to show the value

(0) ShareShare
ReportReport
Posted on by 88

Hi 

 

In the below lookup modal, I would to replace the tooltip for checkboxes to show their corresponding country name instead of 'Checkbox'. How can I do this using javascript.

 

Cris2_0-1636589599456.png

 

Thanks

Cris

 

Categories:
  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hey @Cris2 

     

    please confirm what is the checkbox data type? 

  • Cris2 Profile Picture
    88 on at

    Hi

     

    It's an entity lookup.

  • H V Profile Picture
    1,510 on at

    Hi @Cris2 

    Please use below JS code:

     $("#fieldlogicalname_lookupmodal .entity-lookup .modal-content .fa.fa-fw.fa-check").attr("data-original-title","Your tooltip");
     $("#fieldlogicalname_lookupmodal .entity-lookup .modal-content .fa.fa-fw.fa-check").attr("title","Your tooltip");
     $("#fieldlogicalname_lookupmodal .entity-lookup .modal-content .fa.fa-fw.fa-check").attr("aria-label","Your tooltip");

     

    Please replace "fieldlogicalname" with your field logical name of lookup field.

     

    --------------------------
    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

    Hi @hardikv 

     

    I request was to show the Country name as a tooltip for each of the checkbox.

     

    Thanks

  • H V Profile Picture
    1,510 on at

    Hi @Cris2 

     

    Please add below code:

    $(document).ready(function() {
     var list = $("#new_lookuplogicalname_lookupmodal").find(".entity-lookup").find(".entity-grid").eq(0);
     list.on("loaded", function () {
     list.find("table tbody tr").each(function () {
     var countryName = $(this).find("td[data-attribute='new_country']").attr("data-value");
     $(this).find("td").eq(0).find(".fa.fa-fw.fa-check").attr("data-original-title",countryName);
     $(this).find("td").eq(0).find(".fa.fa-fw.fa-check").attr("title",countryName);
     $(this).find("td").eq(0).find(".fa.fa-fw.fa-check").attr("aria-label",countryName);
     });
     });
    });

     

    Please replace new_lookuplogicalname with your lookup field logical name & new_country with your Country field logical name.

     

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

  • H V Profile Picture
    1,510 on at

    Hi @Cris2 

     

    Did that help to solve your issue?

  • Cris2 Profile Picture
    88 on at

    Thanks @hardikv 

     

    The country name is appearing as tooltip for only the first checkbox in the list. The tooltip for the subsequent checkbox still says 'checkbox'. Your help would be much appreciated.

     

    Thanks

    C

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 18

#2
11manish Profile Picture

11manish 16 Super User 2026 Season 2

#3
anirudhev Profile Picture

anirudhev 4

Last 30 days Overall leaderboard