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

  • Community Member Profile Picture
    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
    652 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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans