1

We are using a "Full" record list in a Salesforce Community and would still like to be able to disable the drop down menu for changing the list view. There is only one list view this group should be using. I was able to hide the down icon to select the list view with CSS but the list view name still shows as a link and allows it to be clicked on. Other than changing this to a Standard layout, is there a way to change this in CSS to prevent the drop-down of list views from showing? Thanks in advance.

enter image description here

1

In a community, you can have a custom component with below code and use it in required community page.

<lightning:listView aura:id="listViewAccounts"
                    objectApiName="Account"
                    listName="AllAccounts"
                    rows="5"
                    showSearchBar="true"
                    showActionBar="true"
                    enableInlineEdit="true"
                    showRowLevelActions="true"
                    />

and below CSS:

.THIS .listViewTitle>a {
    pointer-events: none;
    cursor: default;
    color:black;
}

This will render only 1 list view and CSS will disable the click on name so that it does not go to standard list view.

|improve this answer|||||
  • That is helpful, thanks @salesforcesas – EMC Jul 30 '19 at 19:18
  • WC. pls mark it as solved/accepted if solved – salesforce-sas Jul 30 '19 at 19:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.