Created
February 22, 2017 15:02
-
-
Save nithesh1992/e9d4462f43e111366997e05c20a3a3ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page standardController="Lead" extensions="ConvertExt" sidebar="false"> | |
<apex:pageBlock title="Custom Lead Conversion" tabStyle="Lead" id="LeadBlock"> | |
<apex:pageBlockSection title="Lead Details"> | |
<apex:outputField value="{!lead.LastName}"/> | |
<apex:outputField value="{!lead.OwnerId}"/> | |
<apex:outputField value="{!lead.Company}"/> | |
<apex:outputField value="{!lead.Id}"/> | |
<apex:outputField value="{!lead.Status}" id="leadStatus"/> | |
</apex:pageBlockSection> | |
<apex:form > | |
<div align="center" draggable="false"> | |
<apex:commandButton disabled="{! if(IsConverted , true, false)}" value="Start Conversion" action="{!convertLead}" /> | |
</div> | |
</apex:form> | |
</apex:pageBlock> | |
</apex:page> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment