- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2018 03:02 AM
Hi All,
I have relationships build on RITM and Custom table.
Example: Relation ship names are : "Test", "Test1" and "Test2"
I also created custom ui action "Submit" and this is visible on all three related list, but I want this to show on "Test2" related list only.
Any idea on to this?
Thanks,
Sowmya
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2018 12:53 AM
I have used below script on onload client script to hide the button on RL which is available on multiple RL.
$j('#button_id_name').hide();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2018 05:04 AM
Hi,
what you mean by #button_id_name ?
please explain it
$j('#button_id_name').hide(); ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2018 05:24 AM
Hi Pranay,
As requirement is to hide custom button(i.e same button) which is visible on three different related lists, there no direct way to do it except DOM manipulation(Which is not recommended anyways). So, I used the id of the button and used jquery syntax.
# - specifies I'm going to use id of the HTML element
button_id_name - is the id of the button which I need to hide, which we will get through inspecting the element
hide - is the function which sets the visibility to false
Thanks,
Sowmya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2023 03:44 AM
Hi @sowmyaj,
it's clear how to hide the UI Action. Can you please suggest how to recognize the RL where to hide the button? In other words, how do you read the RL so to choose which one has the hidden button?
Thank you,
Raffaele