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

How to customise a lookup dialog box on portal?

When I click on the lookup icon (magnifying glass) on the portal, it opens a dialog box (popup) for the user to select an item form the list and click the 'Select' button.

 

This dialog box has a default title as 'Lookup records' and button as 'Select'.

 

How do I use customer javascript to customer the title and button?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
hardikv
Solution Sage
Solution Sage

Hi @Cris2 

 

Please find below code to change text of "Lookup records".

$( document ).ready(function() {
    $("#fieldlogicalname_lookupmodal .entity-lookup .modal-content .modal-header .modal-title").first().text("your text");
});

 

In above code, you have to replace "fieldlogicalname" with your form field which opens the dialog.

 

I have tried to change the text of lookup dialog box using JS. However I'm working on "Select" button text change.

 

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

2 REPLIES 2
hardikv
Solution Sage
Solution Sage

Hi @Cris2 

 

Please find below code to change text of "Lookup records".

$( document ).ready(function() {
    $("#fieldlogicalname_lookupmodal .entity-lookup .modal-content .modal-header .modal-title").first().text("your text");
});

 

In above code, you have to replace "fieldlogicalname" with your form field which opens the dialog.

 

I have tried to change the text of lookup dialog box using JS. However I'm working on "Select" button text change.

 

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

Thank you very much. This has worked. Much appreciated!

 

Good luck with the 'Select' button. Please do share the solution.

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (1,881)