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
krishna3krishna3 

Can the screen used to "Convert Lead" be changed? ITS URGENT...

Can the screen used to "Convert Lead" be changed? 
I want to use visual force to modify Lead Convert screen and add all the Fields that are going from Lead to Account and Contact to it. is this possible ?  I am not sure what controller I need to extend.  Please offer your advise and if anyone have code can you please share with me that will be more helpful for me.

Thanks
mtbclimbermtbclimber

Yes. You need to use the Lead standard controller then you can override the convert button with the page using that controller. Here's the basic need:

 

 

<apex:page standardController="Lead">
    Override the "Convert" button with this page.
</apex:page>

 

 

krishna3krishna3

thanks for your suggestion,

 

i created visualforce page for lead conversion.

 

here is the vf page that i created.

 

 

<apex:page standardController="lead" showHeader="True" tabStyle="Lead" extensions="leadController" >
Override the "Convert" button with this page
<apex:form >
<apex:pageBlock title="Convert Lead" >
<apex:pageBlockSection title="Convert Lead" columns="1" id="ConvertLead">
         <apex:pageBlockSectionItem >
            <apex:outputLabel for="Owner">Record Owner:</apex:outputLabel>
            <apex:inputField id="Owner" value="{!Lead.FirstName}" style="width: 150px;" />
          </apex:pageBlockSectionItem>
        <apex:pageBlockSectionItem >
           <apex:OutputLabel for="Send Email to the Owner">Send Email to the Owner:</apex:OutputLabel>
        </apex:pageBlockSectionItem>            
        <apex:pageBlockSectionItem >
            <apex:outputLabel for="Account Name">Account Name:</apex:outputLabel>
             <apex:inputField id="Owner" value="{!Lead.LastName}" style="width: 150px;" />
          </apex:pageBlockSectionItem>
        <apex:pageBlockSectionItem >
            <apex:outputLabel for="Oppt Name">Opportunity Name:</apex:outputLabel>
             <apex:inputField id="Owner" value="{!Lead.Company}" style="width: 150px;" />
          </apex:pageBlockSectionItem>
          <apex:pageBlockSectionItem >
            <apex:outputLabel for="ConStatus">Converted Status:</apex:outputLabel>
             <apex:inputField id="ConStatus" value="{!Lead.Status}" style="width: 150px;" />
          </apex:pageBlockSectionItem>
          </apex:pageBlockSection>         
<apex:pageBlockSection title="Address Information" columns="2" id="AddressInformation">
          <apex:pageBlockSectionItem >
            <apex:outputLabel for="StreetAdd">Street Address:</apex:outputLabel>
          <apex:inputField Id="StreetAdd" Value="{!Lead.Street}" style="width: 150px;"/>
          </apex:pageBlockSectionItem>
        <apex:pageBlockSectionItem >
            <apex:outputLabel for="City">City:</apex:outputLabel>
          <apex:inputField Id="City" Value="{!Lead.City}" style="width: 150px;"/>
          </apex:pageBlockSectionItem>
        <apex:pageBlockSectionItem >
            <apex:outputLabel for="State">State:</apex:outputLabel>
            <apex:inputField Id="State" Value="{!Lead.State}" style="width: 150px;"/>
          </apex:pageBlockSectionItem>
        <apex:pageBlockSectionItem >
            <apex:outputLabel for="Zip">Postal Code:</apex:outputLabel>
            <apex:inputField Id="Zip" Value="{!Lead.PostalCode}" style="width: 150px;"/>
          </apex:pageBlockSectionItem>                    
          </apex:pageBlockSection>
 <apex:pageBlockSection title="Additional Information" columns="2" id="AdditionalInformation">
          <apex:pageBlockSectionItem >
            <apex:outputLabel for="NoofEmp">No. Of Employees:</apex:outputLabel>
            <apex:inputField Id="Owner" Value="{!Lead.NumberOfEmployees}" style="width: 150px;"/>
          </apex:pageBlockSectionItem>
        <apex:pageBlockSectionItem >
            <apex:outputLabel for="Revenue">Annual Revenue:</apex:outputLabel>
                <apex:inputField Id="Revenue" Value="{!Lead.AnnualRevenue}" style="width: 150px;"/>      
                      </apex:pageBlockSectionItem>
        <apex:pageBlockSectionItem >
            <apex:outputLabel for="Industry">Industry:</apex:outputLabel>
           <apex:inputField Id="Industry" Value="{!Lead.Industry}" style="width: 150px;"/>
          </apex:pageBlockSectionItem>
        <apex:pageBlockSectionItem >
            <apex:outputLabel for="Description">Description:</apex:outputLabel>
            <apex:inputField Id="Description" Value="{!Lead.Description}" style="width: 150px;"/>
          </apex:pageBlockSectionItem>
        <apex:pageBlockSectionItem >
            <apex:outputLabel for="Website">Website:</apex:outputLabel>
          <apex:inputField Id="Website" Value="{!Lead.Website}" style="width: 150px;"/>
          </apex:pageBlockSectionItem>  
          </apex:pageBlockSection>                                   
<apex:pageBlockSection title="Task Information" columns="2" id="TaskInformation">
          <apex:pageBlockSectionItem >
            <apex:outputLabel for="Status">Status:</apex:outputLabel>
           </apex:pageBlockSectionItem>
        <apex:pageBlockSectionItem >
            <apex:outputLabel for="DueDate">Due Date:</apex:outputLabel>
          </apex:pageBlockSectionItem>
        <apex:pageBlockSectionItem >
            <apex:outputLabel for="Priority">Priority:</apex:outputLabel>
          </apex:pageBlockSectionItem>
          <apex:pageBlockSectionItem >
            <apex:outputLabel for="EndDate">Completed Date:</apex:outputLabel>
          </apex:pageBlockSectionItem>
          <apex:pageBlockSectionItem >
            <apex:outputLabel for="Followupdate">Followup Date:</apex:outputLabel>
          </apex:pageBlockSectionItem>
          </apex:pageBlockSection>      
<apex:pageBlockSection title="Description Information" columns="1" id="DescriptionInformation">
          <apex:pageBlockSectionItem >
            <apex:outputLabel for="Sub">Subject:</apex:outputLabel>
          </apex:pageBlockSectionItem>
        <apex:pageBlockSectionItem >
            <apex:outputLabel for="Comments">Comments:</apex:outputLabel>
          </apex:pageBlockSectionItem>
        <apex:pageBlockSectionItem >
            <apex:outputLabel for="ExtDescription">Extended Description:</apex:outputLabel>
          </apex:pageBlockSectionItem>
          </apex:pageBlockSection>    
<apex:pageBlockButtons >
             
          <apex:commandButton Action="{!Cancel}" value="Cancel"/>
         </apex:pageBlockButtons>                                     
          </apex:pageBlock>  
</apex:form>               
</apex:page>

here is the problem that i got is,
when i am trying to give inputfield values for task information and Description information it is that unknown error and those values will be in read only mode.