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,

how you created a custom button on specific related list ?

can you please share some sample code ?

Thanks,

Pranay Tiwari
Kilo Guru

OK ,

For custom field configure>UI Action and unchecked the list button so after than it will not show you in your related list.

 

Mark correct or helpful if it helps you.

sowmyaj
Giga Expert

Let me put my requirement in different way,

 

I have problem table, where I'm listing "Open incidents", "Work in Progress Incidents" and "Closed incidents" in related lists.

On incident table, I have created list button named as "Submit".

 

My requirement is that I need to show this submit button only on closed incidents related list but not on other two.

 

You can use parent.state field in the condition

 

parent.state=='closed'..something like that

-Anurag

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