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
Orquidea Perez 5Orquidea 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>


 
Best Answer chosen by Orquidea Perez 5
Suzanne CSuzanne C
Try removing .Owner in the third inputField row, like this:

<apex:inputField value="{! Contact.Email }"/>
 

All Answers

Suzanne CSuzanne C
Try removing .Owner in the third inputField row, like this:

<apex:inputField value="{! Contact.Email }"/>
 
This was selected as the best answer
Orquidea Perez 5Orquidea Perez 5
Funny, originally that is how I had it without the owner and I was still getting that message. I tried it again without it and this time it goes through. Thank you Suzanne for the help!! Orquidea Perez Salesforce Administrator Business Systems Analyst D: 210.630.6476 Advisors Asset Management 28025 IH 10 West Boerne, TX 78006 www.aamlive.com
Suzanne CSuzanne C
Glad I could help! Please mark as solved to close this thread, thank you!