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:58 AM
same script you can use in UI Policy as well, but i would suggest to use onchange client script on your checkbox field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2020 09:34 AM
Hi,
Are you trying to hide a whole section here?
If yes, then if a section has multiple spaces in the name it has to be handled differently, wrote a blog on the same
Check this out: Show/Hide Form Sections with Multiple Spaces In the Name
-Anurag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2020 09:40 AM
I am not trying to hide a section, i am trying to hide the embedded list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2020 09:53 AM
Then setSectionDisplay will not work, check the link shared by Harsh, that shows how to hide the embedded list.
Only make sure that 'isolate script' flag is set to false on your script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2020 02:32 PM