You need to sign in to do that
Don't have an account?

Label and InputText Regarding query
I am trying to built a VF page. I wrote tags for labels and their input box but i was able to create only Labels not along with their Input Box. here is my VF Tags
<apex:page standardController="contact">
<apex:form>
<apex:sectionHeader title="Contact" subtitle="New Contact"/>
<p> Contacts not associated with accounts are private and cannot be viewed by other users or included in reports.</p>
<apex:pageblock title="Contact Edit" Tabstyle="Contact">
<apex:pageblocksection title="Contact Information" columns="1" Collapsible="True">
<apex:pageBlockSectionItem>
<apex:outputLabel value="First Name"/>
<apex.inputText value="{!Contact.FirstName}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem>
<apex:outputlabel value="Last Name"/>
<apex.inputText value="{!Contact.LastName}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem>
<apex:outputlabel value="BirthDate"/>
<apex.inputText value="{Contact.birthdate}"/>
</apex:pageBlockSectionItem>
</apex:pageblocksection>
</apex:pageblock>
</apex:form>
</apex:page>
<apex:page standardController="contact">
<apex:form>
<apex:sectionHeader title="Contact" subtitle="New Contact"/>
<p> Contacts not associated with accounts are private and cannot be viewed by other users or included in reports.</p>
<apex:pageblock title="Contact Edit" Tabstyle="Contact">
<apex:pageblocksection title="Contact Information" columns="1" Collapsible="True">
<apex:pageBlockSectionItem>
<apex:outputLabel value="First Name"/>
<apex.inputText value="{!Contact.FirstName}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem>
<apex:outputlabel value="Last Name"/>
<apex.inputText value="{!Contact.LastName}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem>
<apex:outputlabel value="BirthDate"/>
<apex.inputText value="{Contact.birthdate}"/>
</apex:pageBlockSectionItem>
</apex:pageblocksection>
</apex:pageblock>
</apex:form>
</apex:page>
Please,try like this.
<apex:page standardController="Contact">
<apex:form >
<apex:sectionHeader title="Contact Edit" subtitle="New Account" />
<apex:pageBlock title="Contact Edit">
<apex:pageBlockButtons >
<apex:commandButton value="save" action="{!save}"/>
<apex:commandButton value="cancel" action="{!cancel}"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="{Contact Information}">
<apex:inputField value="{!Contact.firstname}"/>
<apex:inputField value="{!Contact.lastname}"/>
<apex:inputField value="{!Contact.phone}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
All Answers
Please,try like this.
<apex:page standardController="Contact">
<apex:form >
<apex:sectionHeader title="Contact Edit" subtitle="New Account" />
<apex:pageBlock title="Contact Edit">
<apex:pageBlockButtons >
<apex:commandButton value="save" action="{!save}"/>
<apex:commandButton value="cancel" action="{!cancel}"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="{Contact Information}">
<apex:inputField value="{!Contact.firstname}"/>
<apex:inputField value="{!Contact.lastname}"/>
<apex:inputField value="{!Contact.phone}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
Please follow below url for more understadning that's will clear you concept
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_inputField.htm
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
I think,it is mandatory. can you please, mark it is best answer.