Visualforce Page - Lead form to capture data

Visualforce Page - Lead form to capture data:


<apex:page standardController="Lead">

<apex:form >

<apex:pageBlock title="Create New Lead" mode="Edit" >

<apex:pageBlockSection columns="1" >

<apex:inputField value="{!Lead.FirstName}"/>

<apex:inputField value="{!Lead.LastName}"/>

<apex:inputField value="{!Lead.Company}"/>

<apex:inputField value="{!Lead.Status}"/>

<apex:inputField value="{!Lead.LeadSource}"/>

</apex:pageBlockSection>

<apex:pageBlockButtons >

<apex:commandButton action="{!save}" value="Save"/>

</apex:pageBlockButtons>  </apex:pageBlock>

</apex:form>

</apex:page>


Comments