Hide the Catalog Item Description in Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 05:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 07:22 AM
Hi @Sivakrishna -
Would you mind explaining the need for removing the catalog item short description and description from the portal view? Typically, that information helps end users to understand if they are using the right item to request what they are looking for.
Regards,
Hitesh Patel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 07:29 AM
Hi @Hitesh Patel1 ,
Thank you for the immediate response.
Actually my requirement is:
I have a table, having the Checkbox type field "Hide Catalogue Form Description". When I checked the checkbox as true, then description of catalog item(As stated above) will be hided in portal view.
With regards
P. Sivakrishna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 09:39 AM
Hi @Sivakrishna
At this point, you must try with editing the portal widget.
If its baseline sp portal then you may need to create a copy of the widget, edit and replace on the portal.
If its a custom portal then you can directly edit the widget.
Steps for the widget change -
1. Get your custom field "Hide Catalogue Form Description" data in the server-side script.
var gr = $sp.getRecord();
data.hide_catalogue_form_description = gr.hide_catalogue_form_description;
2. Show/Hide the Description and Short Description based on the above field in HTML script.
<div ng-if="data.hide_catalogue_form_description">
<p>{{data.sc_cat_item.short_description}}</p>
<p>{{data.sc_cat_item.description}}</p>
</div>
Best Regards,
Subhash
Please mark helpful if this helps.