- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2020 09:03 PM
Hi, I have a requirement to hide related lists depending on which view the user is in.
I have a UI Policy set to hide a related list depending on a response to a field, but am unsure how to write it based on the view type.
As you can guess I'm only just learning scripting, anyone point me in the right direction?
function onCondition() {
g_form.hideRelatedList('example.task_id_list');
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2020 09:12 PM
Hi,
In your UI Policy , uncheck global and select view on view field.
Please mark correct if helpful.
Thanks,
preethi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2020 09:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2020 11:27 PM
Ugh, I totally forgot about that!!! Such an easy solution, thanks for quick response.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2020 09:18 PM
Hi
Please refer below links it will help you
Please mark correct and Helpful if it helps
Thanks and Regards
Himanshu Dubey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2020 11:26 PM
Hi Himanshu, thanks for the reply. Neither of those threads though talk about hiding a related list by the view you are using.