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-04-2020 09:25 AM
make sure you set "Isolate Script" check box as false in UI Policy .
Please check the below blog.
https://servicenowguru.com/scripting/client-scripts-scripting/hiding-related-lists-embedded-lists/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2020 09:28 AM
That is not the issue here
I changed my script to this:
g_form.hideRelatedList('SF Involvement in Non - Criminal Court Actions 28');
still did not work

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2020 09:30 AM
do you need help in scripting ? may i know where exactly have you stuck ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2020 09:33 AM
Check my original post, the script in my UI policy is not hiding the embedded list. I need help hiding it when the checkbox is selected true.