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.
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.
Regards,
Leah Ju
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.
André Arnaud de Cal...
294,261
Super User 2025 Season 1
Martin Dráb
233,017
Most Valuable Professional
nmaenpaa
101,158
Moderator