Hide related lists

rf1983
Kilo Contributor

Hi, If I have a related list called action and a field in a form called action no. Is it possible to just hide the action related list and no other related list tabs? Thanks

1 ACCEPTED SOLUTION

guhann
Mega Guru

Create UI Policy for the form with condition as field 'Action' is No.



To hide the related list Add the below code in the Execute if True script section.


g_form.hideRelatedList('related_list_table_name');



To show the related list Add the below code in the Execute if False script section.


g_form.showRelatedList('related_list_table_name');



Note: Get the related_list_table_name from thee list control of the related list. Right click related list header > Personalize/Configure List Control. Copy the value from the field 'Related list'



View solution in original post

2 REPLIES 2

guhann
Mega Guru

Create UI Policy for the form with condition as field 'Action' is No.



To hide the related list Add the below code in the Execute if True script section.


g_form.hideRelatedList('related_list_table_name');



To show the related list Add the below code in the Execute if False script section.


g_form.showRelatedList('related_list_table_name');



Note: Get the related_list_table_name from thee list control of the related list. Right click related list header > Personalize/Configure List Control. Copy the value from the field 'Related list'



Thanks!   This is working perfect for me.