+ Start a Discussion
anurajanuraj 

inputField

Hi

Tell me what is inputField and what is the use of the field.

Thanks

Anuraj

Best Answer chosen by Admin (Salesforce Developers) 
sfdcbynitesfdcbynite

an <apex:inputfield> will bind an SObject field to a HTML input field on your Visualforce page.

 

So if you wanted to be able to edit a contact's email on a VF page,

 

<apex:page standardController="Contact">
  <apex:form>
    <apex:inputfield value={!contact.email}" />
  </apex:form>
</apex:page>

 

All Answers

anurajanuraj

Please tell me the answer for it. Please Explain it to me. Its urgent.

sfdcbynitesfdcbynite

an <apex:inputfield> will bind an SObject field to a HTML input field on your Visualforce page.

 

So if you wanted to be able to edit a contact's email on a VF page,

 

<apex:page standardController="Contact">
  <apex:form>
    <apex:inputfield value={!contact.email}" />
  </apex:form>
</apex:page>

 

This was selected as the best answer