I have a Visualforce page to collect the Name and Email of clients. My Visualforce page looks like this:
<apex:page Controller="WebsiteController" >
<apex:sectionHeader title="Registration" subtitle="Please fill in the details"/>
<apex:form >
<apex:pageMessages />
<apex:pageBlock title="Email updates">
<apex:pageBlockButtons >
<apex:commandButton action="{!submit}" value="Submit"/>
<apex:commandButton action="{!reset}" value="Reset"/>
</apex:pageBlockButtons>
<apex:pageBlockSection >
//here is my problem: the page shows an input field for email, but not name
<apex:inputField value="{!contact.Name}" required="true"/>
<apex:inputField value="{!contact.Email}" required="true"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
I have no idea why one input field is shown and the other is not - I am probably missing a small detail.