- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2019 10:20 PM
I have created a related list that I only want visible when a certain field is set to Yes. I have created a UI Policy with scripts to make the list show when the field is set to Yes and to hide the list when the field is set to No. The UI Policy works great when Yes is chosen, but the list reappears when the form is saved or when it is opened. In other words, the script appears to work onChange, but not onLoad. How do I get the list to be hidden when the form loads (if the field is set to Yes)?
I am new to this and am wanting to learn. Thanks in advance for any help.
Solved! Go to Solution.
- Labels:
-
Project Portfolio Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2019 10:23 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2019 10:23 PM
Hi
Go through the below link :-

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2019 10:31 PM
HI,
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'
Please mark reply as Helpful/Correct, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2019 10:32 PM
Check this website. Maybe you will find some interesting information.
Please mark reply as Helpful/Correct, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2023 03:47 AM
I am still not able to hide the embeded list with the above solution.