Hide embedded list with UI Policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2020 09:22 AM
Hello,
I have a checkbox field, when it is selected I would like the embedded list underneath to be hidden. How can I do this?
Here is what I have so far in my UI Policy:
Condition: when checkbox is true
Script:
g_form.hideRelatedList('SF Involvement in Non - Criminal Court Actions 28');
Here is a picture of the form:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2020 10:43 AM
Hi,
I have created a function for this case. Below is the code
Note: on UI script, there is a field called Isolate script, uncheck it.
manipulateEmbeddedList("Incident Tasks", ""); // @first parm title of embeded list @second would consider "none"/""
function manipulateEmbeddedList(title, behavior){
document.querySelectorAll('[tab_caption="'+title+'"]')[0].style.display = behavior;
}
result
Visible
Hidden

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2020 12:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2020 08:03 AM
Yes i tried and it did not work

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2020 11:43 AM
Can you try to add alert, please check my last response , i have added some steps to troubleshoot it.