
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2020 09:23 AM
How to Hide related links and related lists using client script or UI policy on portal for standard changes (without updating the condition on the respective UI actions)
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2020 10:03 AM
Here you go:
Please mark my response as correct and helpful if it helped solved your question.
-Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2020 09:29 AM
If you have to hide it always on the portal, i would suggest to create a new view and use view rule function to achieve the same.
Alternatively, if you have to do it on some conditions, check the below URL and on the client script, define it to run it only on Portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2020 09:53 AM
I Could able to achieve Related Lists but not Related Links.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2020 10:03 AM
Related links are nothing but the UI actions, so there is a function in the UI action to show them based on the views. If you have a separate view of the portal, it will be easy to manage.
I have found this article as well, it shows a way to achieve what you are expecting but it needs a custom widget:
My personal preference for this problem will be to have another view instead of a new widget altogether.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2020 09:41 AM
Hi,
Use the below code code in client script:-
g_form.hideRelatedList('related list name');
If i was able to solve your query, please mark my answer correct and helpful.
Thanks & regards
Prasant kumar sahu