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 tooltip text fo...
Power Pages
Answered

Change tooltip text for 'Search' control for lookup modal

(0) ShareShare
ReportReport
Posted on by 88

Hi

 

How can change the below tooltip (circled in red) using javascirpt.

 

Cris2_0-1636588645198.png

 

Thanks

Cris

Categories:
I have the same question (0)
  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @Cris2 

     

    You don't need JavaScript to change the tooltip. Please try the below method 

     

    In Portal management: 

    1. Under content > lists > Choose your entity list

    2. Unde General > Scroll down to "Search Section" > Update the tooltip text as you like 

    ragavanrajan_1-1636593200845.png

    3. Hit save and close 

     

    In Portal Studio: 

    1. Sync configuration > Browse website > Ctrl + F5 

     

    Output: 

     

    ragavanrajan_0-1636593182742.png

     

    Hope it helps. 
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

  • Cris2 Profile Picture
    88 on at

    Hi @ragavanrajan 

    There isn't a list item for this entity on our management portal. Created one, but not sure how to like with the page.

    Thanks

  • H V Profile Picture
    1,510 on at

    Hi @Cris2 

     

    Please add below JS code:

     $("#fieldlogicalname_lookupmodal .entity-lookup .modal-content .query.form-control").attr("data-original-title","Your tooltip");
     $("#fieldlogicalname_lookupmodal .entity-lookup .modal-content .query.form-control").attr("title","Your tooltip");
     $("#fieldlogicalname_lookupmodal .entity-lookup .modal-content .query.form-control").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 

     

    Tried this, but no luck.

     

    Thanks

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

    Hi @Cris2 

    Please inspect the element and post the name of the control

  • Cris2 Profile Picture
    88 on at
    hs_mobilephonecountrycodeid
  • Cris2 Profile Picture
    88 on at

    hs_mobilephonecountrycodeid

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

    Hi @Cris2 

     

    This code should work:

    $(document).ready(function() {
     var list = $("#hs_mobilephonecountrycodeid_lookupmodal").find(".entity-lookup").find(".entity-grid").eq(0);
     list.on("loaded", function () {
     $("#hs_mobilephonecountrycodeid_lookupmodal .entity-lookup .modal-content .query.form-control").attr("data-original-title","Your tooltip");
    		$("#hs_mobilephonecountrycodeid_lookupmodal .entity-lookup .modal-content .query.form-control").attr("title","Your tooltip");
    		$("#hs_mobilephonecountrycodeid_lookupmodal .entity-lookup .modal-content .query.form-control").attr("aria-label","Your tooltip");
     });
    });
  • Cris2 Profile Picture
    88 on at

    Hi @hardikv 

     

    Spot on! Thanks this worked.

     

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Pages

#1
Hammed Profile Picture

Hammed 22

#2
Lucas001 Profile Picture

Lucas001 21 Super User 2026 Season 1

#3
DP_Prabh Profile Picture

DP_Prabh 19

Last 30 days Overall leaderboard