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
ProlayProlay 

Custom List Button is not showing up in Page Layout

Hi,

I created a custom list button using VF page. I tried to add the list button in Page Layout, but the custom List button is not visible as component under Button section of the Page Editor.

I would appriciate any help to resolve my issue.

Thanks,
Prolay
Vamsi KrishnaVamsi Krishna
Hi
In your VF page, you should be using the Standard Controller of the object in whose page layout you are going to add the VF component.
if you already have it and still its not showing up, can you share the code then we can suggest what needs to be fixed..
Karan Khanna 6Karan Khanna 6
why dont you go with Detail page button?
ProlayProlay
Here is my code for VF page

<apex:page standardController="Job_Application__c"    recordSetVar="applications">
  <apex:sectionHeader title="Mass Update the Status
      of Job Applications"/>
  <apex:form >
    <apex:pageBlock >
      <apex:pageMessages />
      <apex:pageBlockButtons >
        <apex:commandButton value="Save"            action="{!save}"/>
        <apex:commandButton value="Cancel"            action="{!cancel}"/>
      </apex:pageBlockButtons>
      <apex:pageBlockSection title="Status Update"          collapsible="false">
        <apex:inputField value="{!Job_Application__c.Status__c}"/>
      </apex:pageBlockSection>
      <apex:pageBlockSection title="Selected Job
          Applications" columns="1">
        <apex:pageBlockTable value="{!selected}"            var="application">
          <apex:column value="{!application.name}"/>
          <apex:column value="{!application.position__r.name}"/>
          <apex:column headerValue="Candidate Name">
            <apex:outputText value="{!application.candidate__r.First_Name__c & ' ' & application.candidate__r.Last_Name__c}"/>
          </apex:column>
          <apex:column value="{!application.Status__c}"/>
        </apex:pageBlockTable>
      </apex:pageBlockSection>
    </apex:pageBlock>
  </apex:form>
</apex:page>
ProlayProlay
Hi Flocks,

Please help me to resolve this issue.

Thanks in advance!
Prolay