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

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!

View solution in original post

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

 

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

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,458)