[SalesForce] VisualForce page doesn’t show up as an option after I create new button

I have created a Custom Object(Employee__c) and I have created a VisualForce Page for that custom object and now I like to add a custom button to open any other custom visual force page.

Setup>> Create>>Objects>>Employee>>Custom buttons & links.

Action Type: custom Visualforce

Visualforce Page: I do not see my custom visualforce page here

here is my visualforce page:

<apex:page controller="employee_vfp_Controller" showheader="true" sidebar="true">
   <apex:form >

   //....more code

   </apex:form>
</apex:page>

Best Answer

You need to add standard controller as well.

The custom object's Standard Controller must be set to make that page visible in Button, Links or Action.

Page looks like:

<apex:page standardcontroller="Employee__c" extensions="employee_vfp_Controller" showheader="true" sidebar="true">
   <apex:form >

   //....more code

   </apex:form>
</apex:page>