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
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
Hi Tuomas,
did you try with another Page Template or that Web Page?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156