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

Does anyone know how to hide the Related List and Related Links in Reference icon popup window within Service Portal.

bindhustephen
Kilo Contributor

I created a clone of the OOB SC Catalog Item widget and added logic to pass the View "ess"
        data.sc_cat_item.view = "ess";
Now the reference icon popup form displays in "ess" view. But I see Related List, Related Links in the popup . Is it possible to hide these programmatically within the popup in Service Portal without modifying the View itself?

find_real_file.png

6 REPLIES 6

Ximizu
Mega Guru

Hi bindhustephen,

Since the OOTB form widget already allow to display or hide the related list links.

We can see in the HTML this line:

<div ng-if="!data.hideRelatedLists">

And on the server script:

data.hideRelatedLists = options.hideRelatedLists || false;

So in order to hided the related list links, I recomment to add this piece of code in the field "Additional options, JSON format" of the widget instance:

"hideRelatedLists": {
"value": true,
"displayValue": ""
}

find_real_file.png

Form widget

 

find_real_file.png

Form widget instance

 

Ximizu
Senior Consultant
https://ximizu.io

jayr
Tera Contributor

Thanks!  I kept using "value":"true" instead of "value": true, that's why it never hid the RL's!