Inputfield in Salesforce

apex:inputField can be used to display a Field from an object in a Visualforce page.

Sample Code:

<apex:page standardController="Account">
    <apex:form>
    	<apex:pageBlock>
        	<apex:pageBlockSection>
            	<apex:inputField value="{!Account.Name}"/>
            	<apex:inputField value="{!Account.Industry}"/>
            	<apex:inputField value="{!Account.Description}"/>
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>

Leave a Reply