Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

CRM Portal (old ADX Portal): Remove "Remove Value" button in lookup modal

Posted on by Microsoft Employee

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:

LookupModalRemoveValue.PNG

*This post is locked for comments

  • Suggested answer
    oliver.rodrigues Profile Picture
    oliver.rodrigues 4,052 on at
    RE: CRM Portal (old ADX Portal): Remove "Remove Value" button in lookup modal

    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

  • urklnme Profile Picture
    urklnme 437 on at
    RE: CRM Portal (old ADX Portal): Remove "Remove Value" button in lookup modal

    where do I find entity-lookup.js ?

    I looked through my Web Resources and could not find it.

  • Suggested answer
    Tino Rabe Profile Picture
    Tino Rabe 650 on at
    RE: CRM Portal (old ADX Portal): Remove "Remove Value" button in lookup modal

    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.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM Portal (old ADX Portal): Remove "Remove Value" button in lookup modal

    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

  • Verified answer
    oliver.rodrigues Profile Picture
    oliver.rodrigues 4,052 on at
    RE: CRM Portal (old ADX Portal): Remove "Remove Value" button in lookup modal

    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?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans