How to display a custom field on catalog item form in Portal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2019 11:17 AM
Hi Everyone,
I've been asked to add a couple of custom fields to the Header of the Catalog Item form in Portal. I added these fields to the sc_cat_item table but am not able to get them to display on the portal view. I modified the SC Catalog Item widget and was able to put the "Price" field below the 'Short Description" but have cannot figure out what I'm doing wrong to get the custom fields to display.
Here is one of the methods I've tried to display the "u_sla" Translated Text field. What am I missing or am I taking the wrong approach all together?
<h1 class="h2 m-t-none m-b-sm font-thin" ng-if="::data.sc_cat_item.name">{{::data.sc_cat_item.name}}</h1>
<div class="text-muted sc-cat-item-short-description" ng-if="::data.sc_cat_item.short_description">{{::data.sc_cat_item.short_description}}</div>
<br>
<br>
<div class="m-b text-left" ng-if="data.showPrices && (data.sc_cat_item.price || data.sc_cat_item.recurring_price)" >
<b>:</b> {{data.sc_cat_item.price_display}}<em ng-if="data.sc_cat_item.recurring_price" class="cat_item_price"> {{data.sc_cat_item.price ? '+' : ''}} {{data.sc_cat_item.recurring_price_display + ' ' + data.sc_cat_item.recurring_price_frequency}}</em>
</div>
<div class="m-b text-right" ><b>:</b> {{::c.data.sc_cat_item.u_sla}}</div>
- Labels:
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2019 03:44 PM
Nope. If I replace "u_sla" with "price" or "short_description" I get "SLA: whatever that field contains", but it is not passing the content of the u_sla custom field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2020 02:20 AM
Your question is a bit old, but I did see it when I was having the same problem.
But I found the solution in this HI knowledge article, so wanted to share it to you and others how might still have this issue.
And yes did test it and it is working 🙂
https://hi.service-now.com/kb_view.do?sysparm_article=KB0756664