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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 55 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 27 Most Valuable Professional

#3
Soundari Profile Picture

Soundari 15

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans