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!

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,389)