Remove custom ui action on related list

kristenankeny
Tera Guru

We have a custom UI action set up as a list banner button. How do I either:

Remove the UI action from the list when shown as a related list?

OR

Have the UI action only show on the list views where it is needed?

Thanks!

1 ACCEPTED SOLUTION

We believe we've found a resolution for this. I had found the UI Action Visibility list. I created a list view for approvals as a related list on incidents and added a "ui action visibility" to exclude the UI action from my list view. Unfortunately this did not resolve the issue. I found this string saying that the related lists will use the same view as the form they are on. Since we use the "default" view for ITIL users, my related list was using the "default" view. Instead of this solution, we are going to do the following:



We are creating new views for the lists where we want the UI action to show


We will add a UI Action Visibility record on the UI action to have it show only for that view


If needed, we will add a UI Action Visibility record to the UI action to have it excluded from "default"


View solution in original post

7 REPLIES 7

emaasalmi
Kilo Sage

I know this is too late for the original poster, but as I was looking for a solution to this same question, I found out that setting !RP.isRelatedList to the UI Action's condition will remove the button from related lists, but still show on the "actual list". Works at least in Kingston release.

This is part of the RenderProperties API, documented here:

Kingston RenderProperties documentation

We ended up submitting a HI ticket and they found that the issue was incompatibility between "current" and "RP.isRelatedList". the ticket was open for a while while they worked on it and they gave us an update that it's fixed and functioning as expected in Kingston.

Community Alums
Not applicable

Confirmed this works for scoped apps as well in the UI Action condition without the need to try and call back to the global scope. Used !RP.isRelatedList() in the condition and worked perfectly to not display UI Action in related list.