How to hide a related list tab based on some condition

Harsha21
Kilo Contributor

There is a requirement where when state is in New, I want to hide a particular related list

1 ACCEPTED SOLUTION

Chandra Sekhar6
Tera Guru

Hello,

Please write the following code in the client script, I have written on OnLoad type

You can write based on your requirement

function onLoad() {
//Type appropriate comment here, and begin script below
if(g_form.getValue('state') == 1)
{
g_form.hideRelatedList('related list name');
}

}

View solution in original post

5 REPLIES 5

This is working