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
Solved! Go to Solution.
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!
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.