The CreatorCon Call for Content is officially open! Get started here.

Hide the Catalog Item Description in Portal

Sivakrishna
Kilo Sage

Hi,

     I have Catalog item, having short description and description, these two fields are visible in portal. I want to hide values of short description and description in portal. I have attached the snaps for reference.

 

Thanks in advance..

 

 

With Regards

 

P. Sivakrishna

12 REPLIES 12

Hitesh Patel1
Tera Contributor

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 

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

 

Subhash Kaushal
Tera Expert

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.