+ Start a Discussion

How to include a custom button on a Visualforce page

I currently have a custom button which I am using to launch a Flow by using a VF page as the source (which in tail launches an Apex Class). It works fine, but I need to put it in a VF page now and I'm not sure how to do that. 

This is the VF page which is the source of the button : 
<apex:page StandardController="Product__c" Extensions="New_ProductReview_With_Flow_Controller">
<flow:interview interview="{!myflow}" name="Product_Review" finishlocation="{!finishlocation}"> 
<apex:param name="VarProdRecID" value="{!Product__c.Id}"/>


I'm not how the commandbutton line should be set up in the VF page. Should it be using action = ? Should it all be a URL with a param statement in it ?
NagendraNagendra (Salesforce Developers) 

I figured this out - for anyone who stumbles upon the same question, this is what worked:
<apex:commandButton action="{!URLFOR($Action.Contract.FC_Edit, Id)}" id="editButton" value="Edit"/>
For more information refer to the below link on the community forums

Kindly mark it as solved if it helps you.

Best Regards,