Wednesday 30 July 2014

Call Custom Button in Visualforce page without custom controller

Here Custom_Button is the name of my custom button on opportunity object.

<apex:page standardController="Opportunity" >
    <apex:form >
              <apex:commandButton value="Edit" action="{!URLFOR($Action.Opportunity.Custom_Button,Opportunity.id)}"/>
    </apex:form>
</apex:page>