How to display a UI action on a list view based on specific conditions

Daniel R2
Kilo Sage

Hi,

 

We have created a specific UI action called 'Resolve as SPAM', and as part of this UI action once pressed, it will change the state of the record which has a category of 'Manage Customer Queries' to the 'Resolved' state.

This functionality is working as expected from within the form itself aswell as from the list view. However we have a question around the visibility of this UI action. 

As you can see in the screenshot below, the UI action is greyed out, and it is only possible to press it (un-greyed) when an edit checkbox is selected on the left hand side of the record. However if I press any of these checkboxes, no matter the category it still becomes un-greyed and is possible to press.

Is it possible to make this UI action un-greyed, only when a checkbox is selected on a record with the category as 'Manage Customer Queries' and always greyed when any of the other records with a different category is selected? Can anybody please provide any guidance or support here on if this is possible.

 

DanielR2_0-1694681094813.png

 

 

Below is our UI action, as you can see we have the condition as current.category == 10 which is the 'Manage Customer Queries' category above

 

 

DanielR2_2-1694681388918.png

 

Also here is our list action. We dont have any conditions on this, because when we try to add the category condition then for some reason it removes the UI Action from the list view.

DanielR2_3-1694681545498.png

 

 

 

1 ACCEPTED SOLUTION

Peter Bodelier
Giga Sage

Hi @Daniel R2,

I do not believe this is possible, unless you are prepared to use UI Builder to change the record page. (Create a new variant of it), and use the list events to evaluate if a button component should be shown based on the data in the event.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

View solution in original post

1 REPLY 1

Peter Bodelier
Giga Sage

Hi @Daniel R2,

I do not believe this is possible, unless you are prepared to use UI Builder to change the record page. (Create a new variant of it), and use the list events to evaluate if a button component should be shown based on the data in the event.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.