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

The reason it isn't working is because the OOTB Form widget expects the data type to be boolean but through options.hideRelatedLists it gets string ("true") instead of true.This is a bug in the widget.

Thank you Sir.

I had tried this and had no idea why it wasn't working. In the end I copied and pasted what you had put and it worked. Turns out I had put true in inverted commas dammit.

I can't thank you enough as this one thing was stopping me from handing an update over for testing.

This definitely solved the problem, but there is a shorter version. As long as the value of hideRelatedList is a boolean, *not* a String:

{
"hideRelatedLists": true
}

NB no quotes on true.
Looking at the code, as far as I can see in the HTML it doesn't appear that displayValue is used anywhere.

 

Thanks all the same

aparnag
Kilo Contributor

Hi Ximizu,

 

Thanks for your solution.It worked.

But is there a way I can hide only certain related lists on the form.Not all?

Regards,

Aparna