+ Start a Discussion
Mary Pamishetty 3Mary Pamishetty 3 

custom button with javascript

How can use custom button with javascript on visual force page.
I've used below code but I'm getting 'URL No Longer Exists  <apex:commandbutton value=" Process" action="{!URLFOR($Action.Lead.Begin__Process,Lead.id)}"/>

 
Rohit B ☁Rohit B ☁
If you are referring custom button then you need to apply __c in the api name. You should use Begin__Process__c.