hide related list on service portal

sushant007
Kilo Guru

Hello ,

Have anyone came accross hiding the related link on service portal

PFB, I want to hide related list

find_real_file.png

It was not there while we were on Helsinki but started appearing on Kingston.

 

8 REPLIES 8

Raju Koyagura
Tera Guru

Yes, it is possible with client scripts by selecting UI Type as Mobile/ Service Portal.

 

find_real_file.png

Thanks Raju, this was helpful

Ximizu
Mega Guru

Hi sushant007,

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

Hi @Ximizu 

I added below code in "Additional options, JSON format" of the widget instance and struggling to understand why it isn't working.

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

But I changed to what you mentioned and it worked. Thanks.

Thanks,
Mittal

Thanks