The CreatorCon Call for Content is officially open! Get started here.

How to hide custom button on related lists which have same relationship

sowmyaj
Giga Expert

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

1 ACCEPTED SOLUTION

sowmyaj
Giga Expert

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();

View solution in original post

12 REPLIES 12

Hi,

what you mean by #button_id_name ?

 

please explain it

$j('#button_id_name').hide();  ?

 

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

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