Hello everyone,
I want to remove the "Remove Value" button form the lookup modal in the crm portal but I have no idea how.
Can you help me?
Image as reference:
*This post is locked for comments
that is placed in the source code of the portals
I am not very active in this forum, please refer to powerusers.microsoft.com/.../PowerAppsPortals for Power Apps Portals questions
where do I find entity-lookup.js ?
I looked through my Web Resources and could not find it.
Hi Valentino,
another approach as an addition to the JavaScript approach: disable the visibility by a customm css extension.
The extension can be hosted in the 'Custom CSS' section of your Entity Form / Web Page.
Thanks,
Your suggestion to use JavaScript worked as expected, and now the 'Remove Value' button has gone from all the modals as intended.
(for reference I have modified the entity-lookup.js file)
Thanks again,
Valentino
do you need to remove it for a specif entity/entity form or would it be from the entire portal?
this is rendered in the EntityLookupExtensions.cs class (Adxstudio\Xrm\Web\Mvc\Html\EntityLookupExtensions)
see the "LookupModal" method and you can comment the lines "var removeValueButton = new TagBuilder("button");".... etc
never tried, don't know if there are any impact on doing this
have you tried performing this using JavaScript?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156