You need to sign in to do that
Don't have an account?
Orquidea Perez 5
Apex:inputField error on Trailhead VF Challenge
I am getting the following error message:
"Challenge not yet complete...here's what's wrong:
The page does not include a apex:inputField Component bound to the contact email.
Here is the code I wrote in the Dev Console, I don't believe there are errors, but if anyone can help, would be appreciated :-)
<apex:page standardController="Contact">
<apex:form >
<apex:pageBlock title="Edit Contact">
<apex:pageBlockSection columns="1">
<apex:inputField value="{!Contact.FirstName}"/>
<apex:inputField value="{!Contact.LastName}"/>
<apex:inputField value="{!Contact.Owner.Email}"/>
</apex:pageBlockSection>
<apex:pageBlockButtons >
<apex:commandButton action="{! save }" value="Save"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
"Challenge not yet complete...here's what's wrong:
The page does not include a apex:inputField Component bound to the contact email.
Here is the code I wrote in the Dev Console, I don't believe there are errors, but if anyone can help, would be appreciated :-)
<apex:page standardController="Contact">
<apex:form >
<apex:pageBlock title="Edit Contact">
<apex:pageBlockSection columns="1">
<apex:inputField value="{!Contact.FirstName}"/>
<apex:inputField value="{!Contact.LastName}"/>
<apex:inputField value="{!Contact.Owner.Email}"/>
</apex:pageBlockSection>
<apex:pageBlockButtons >
<apex:commandButton action="{! save }" value="Save"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
<apex:inputField value="{! Contact.Email }"/>
All Answers
<apex:inputField value="{! Contact.Email }"/>