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 :
Microsoft Dynamics CRM (Archived)

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

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    Tino Rabe Profile Picture
    652 on at

    Hi Tuomas,

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

  • Community Member Profile Picture
    on at

    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

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans