function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
chiranthchiranth 

Restrict the visibility of custom button based on the list view selected.

HI

 

I have 3 types of list view on case.

1. List view one.

2. List view two.

3.List vies three.

 

I have created a custom list button. I haved placed it on the search layout.

I want to display this button only  when the user selects the List view One on cases.

I dont want to display this button on the List View two and Three.

 

Is this possible ?

 

RoyGiladRoyGilad

Hi

There is no out-of-the-box solution for what you want.

You could add JS to the side strip and it is not a simple task.

 

A more supported way to solve this in Salesforce would be to check the same filters when the button is pressed as the fiters in the listview.

 

Does that help you?