- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2023 02:06 AM
Hi,
I have the field 'Master' of type True/False and I have the related list 'Software Installation'.
Im trying to Hide the related list if Master is False using onLoad Client Script.
What am I doing wrong?
function onLoad() {
var epc = g_form.getValue('u_master');
if (epc=='false') {
g_form.hideRelatedList('Software Installation');
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2023 02:09 AM
Hi @Alon Grod ,
You create UI policy to show and hide the related list based on condition
Go through the below link :-
Sample Example :
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'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2023 02:09 AM
Hi @Alon Grod ,
You create UI policy to show and hide the related list based on condition
Go through the below link :-
Sample Example :
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'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2023 02:18 AM
Hello Alon,
You can use UI policy-related list actions to fulfill your requirement.
Thanks,
AbdulRahim