function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Edward JonesEdward Jones 

'ContactForm' Visualforce page does not have a apex:inputField component

I get this error on the "Add a form to the Visual Force Page.

Step Not yet complete... here's what's wrong:
The 'ContactForm' Visualforce page does not have a apex:inputField component
Note: you may run into errors if you've skipped previous steps.

However the Apex:inputField comonent is there.  Here is my code snipet.

<apex:form>
    Hello <apex:inputField value="
{!Contact.FirstName}" />
    <br /><apex:commandButton value="Submit" action="
{!save}"/>
</apex:form>
Mahesh DMahesh D
Hi Edward,

Please paste the full VF page and it will be easy to troubleshoot it.

Regards,
Mahesh
Edward JonesEdward Jones
Here is the screen shot

User-added image
Mahesh DMahesh D
Hi 

Please check the below code which I executed in my DE org.
 
<apex:page standardController="Contact">
    <apex:form>
        First Name: <apex:inputField value="{!Contact.FirstName}" /> <br/>
        Last Name:  <apex:inputField value="{!Contact.LastName}" />
        <br /><apex:commandButton value="Submit" action="{!save}"/>
    </apex:form>
</apex:page>

Regards,
Mahesh
Thomas HThomas H
Excellent -- Thanks Mahesh    Perfect 
Christina RicheyChristina Richey
I am getting this same error:  The 'ContactForm' Visualforce page does not have a apex:inputField component

I have tried in every org and my DE org and still get this error.User-added image

Any help would be most appreciated.