Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Trying to add product lookup field on community portal form but it is not showing up

Posted on by Microsoft Employee

Hi All,

I am working on community portal and I have created a custom case creation form over there. It works fine otherwise but I need to have product lookup on the form because in my scenario, the product is a mandatory field for a case entity. However, when I add a product lookup field on the portal web form, it is not showing up.

I have verified that the portal user that I use has proper permissions to the product entity. Also I have verified that it is not a caching issue as other form changes that I do show up fine in the web form. Also I have restarted the portal but it did not help either.

I started investigating the portal web form source code in browser dev tools and noticed that there is a following piece of JavaScript in place:

<script type="text/javascript">
// Hide entitlement and prodcut fields if site setting = false
(function ($) {
$("#productid").closest("td").hide();
$("#entitlementid").closest("td").hide();
}(jQuery));
</script>

I think this is now the cause of this issue. However, I cannot find a portal site setting that would have an effect to this. The JS comment over there does not mention either that which site setting they refer to here.

Has anybody else faced the same issue with the portal web forms?

Thanks,

Tuomas

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Trying to add product lookup field on community portal form but it is not showing up

    Hi Tino,

    Thanks for your reply.

    The fix to this issue was actually one site setting which was just not mentioned in the script code comment. When I changed the site setting CustomerSupport/CaseEntitlementEnabled to true value, then the productid lookup field loaded properly to the portal form. So if anybody runs into the same issue, this resolves it quickly. The proper site setting is pretty difficult to identify as the code comment does not mention the site setting name.

    Thanks,

    Tuomas

  • Suggested answer
    Tino Rabe Profile Picture
    Tino Rabe 650 on at
    RE: Trying to add product lookup field on community portal form but it is not showing up

    Hi Tuomas,

    did you try with another Page Template or that Web Page?

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