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
Nitish Bansal 46Nitish Bansal 46 

Visualforce list view button does not work in napili

Hi Guys,

I have a custom list view VF button for mass action on my opportunity object. This works fine when I am using this on classic or Lightning experience.
Earlier there were no checkboxes for records within Napili template in list views and no button used to show up. In summer '17 release checkboxes and buttons are now showing up. But when I click on this button, wierdly enough nothing happens at all. My VF is lightning and Salesforce1 enabled. User has relevant permissions.
If anyone wants to check out this in their dev org for trial. Use this page for creating a list view button and add to layout.

This is very critical. Any pointers will be appreciated.

Apex class:
public class tenPageSizeExt {

    public tenPageSizeExt(ApexPages.StandardSetController controller) {
        controller.setPageSize(10);
    }
}

VF Page:
<apex:page standardController="Opportunity" recordSetVar="opportunities" tabStyle="Opportunity" extensions="tenPageSizeExt">
    <apex:form >
        <apex:pageBlock title="Edit Stage and Close Date" mode="edit">
            <apex:pageMessages />
            <apex:pageBlockButtons location="top">
                <apex:commandButton value="Save" action="{!save}"/>
                <apex:commandButton value="Cancel" action="{!cancel}"/>
            </apex:pageBlockButtons>
            <apex:pageBlockTable value="{!selected}" var="opp">
                <apex:column value="{!opp.name}"/>
                <apex:column headerValue="Stage">
                    <apex:inputField value="{!opp.stageName}"/>
                </apex:column>
                <apex:column headerValue="Close Date">
                    <apex:inputField value="{!opp.closeDate}"/>
                </apex:column>
            </apex:pageBlockTable>      
        </apex:pageBlock>
    </apex:form>
    </apex:page>


Regards,
Nitish
S3-LinkS3-Link
We are facing same issue Nitish. Did you found any solution or any workaround? Thanks in advance.