web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Dynamics 365 Portal - Hide Contacts lookup view

(0) ShareShare
ReportReport
Posted on by 416

Hello everyone. 

I have the Customer field (logic name - customerid) which is rendering 2 lookups on the portal:

pastedimage1620892869934v2.png

I want the portal user to only see the Account lookup view when submitting a case. 

Any suggestions please?

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi fran2105,

    If you want to disable contact lookup view of customer field in the form, which can be easily to achieved through js.

     

    function defaultcustomer() {
        Xrm.Page.getControl("customerid").addPreSearch(addFilter);
    }
    function addFilter() {
        var customerAccountFilter = "";
        Xrm.Page.getControl("customerid").addCustomFilter(customerAccountFilter, "contact");
    }

    Contact label in customer field is greyed out.

    pastedimage1620972153806v1.png

    However, it’s hard to hide contact lookup view for customer field in the portal, maybe you can create a new 1:N relationship between Account and one entity you need, then add the account lookup field to the form that has been used in portal.

    pastedimage1620972245758v3.png

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
NeerajPawar Profile Picture

NeerajPawar 31

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 30 Super User 2026 Season 1

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 14

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans