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

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

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
Carousel Community Blog

Check out the Community Blog

Read all about the most recent blogs in the community!

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Carousel News & Announcements

What's New in the Community?

Check out the latest News & Events in the community!

Users online (6,496)