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

Custom Button on a visualforce page

I have created a custom Approval Button. I am unable to add this to the visual force page. CAn we add custom buttons to our VF page??

Subhani PSubhani P



I have seen the same link in developer group. Please check the following link.


If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.

Salesforce Certified Developer,

Well seems like you have defined a custom button for the standard layout. The visualforce page act really different and you cannot simply add a button without making any changes to the VF code.

You probably have to make changes in the page and add a button component <apex:commandButton>