
- 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-05-2020 05:16 AM
Hi James,
Open the form in which view you want to hide the related list.Then from context menu go to Configuration-->Related Lists,and remove the selected related lists.
If I'm able to solve your requirement please mark helpful.
Thanks,
Gopi

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2020 09:27 PM
Thanks Gopi
My issue actually got sorted a bit further up. In the UI Policy i just had to untick global then i could apply the rule to a view.
Out of interest though i did just test your suggested method. Related lists get added to all views on the form when you add them, not just to the view you are in at the time.
Unless I'm doing something wrong.
Regards,
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2020 09:55 PM
Hi
Thanks,
Gopi