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
sudhIr NarayansudhIr Narayan 

Click of button change lead status

Hi, 

 I need a suggestion on changing lead status on click of a button. 

 I need to add a button on lead page when user click on button lead status must be updated to "Completed" Please suggest me how to implement this feature.

Thanks

Sudhir

Ramu_SFDCRamu_SFDC
Try the solution provided in the below links

https://success.salesforce.com/answers?id=90630000000h2r7AAA

https://success.salesforce.com/answers?id=90630000000ghvRAAQ
Dev.AshishDev.Ashish
1) Create custom button on leads object of  Content Source=visualforce
2) In visualforce page's controller write code to update field value and redirect user to detail page again.

Example @ http://sfdc.arrowpointe.com/2009/01/08/invoke-apex-from-a-custom-button-using-a-visualforce-page/