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
Brenda Edwards 9Brenda Edwards 9 

Trail head VF Challenge: Inputting Data using forms

Im getting an error message on my challenge saying:  The page does not include a apex:inputField component

I'm confused.  Here is my code:
User-added image
claperclaper
you did not properly closed the <Apex:pageBlockSection> tag. In line 8 it should be </apex:pageBlockSection> instead of <apex:pageBlockSection>
claperclaper
Same goes for :
line 15 </apex:pageBlock>
line 16 </apex:form>
line 17 </apex:page>
Brenda Edwards 9Brenda Edwards 9
I'm still getting the same error message:  Challenge Not yet complete... here's what's wrong:
The page does not include a apex:inputField component
 
claperclaper
Where you able to save the Visualforce page correctly and did you name it (Label & API Name) as the challenge suggested? May be check for misspelled words
Brenda Edwards 9Brenda Edwards 9
checked label and API- still getting error
User-added image

 
claperclaper
on line 4 try placing the columns="1" attribute inside the apex:pageBlockSection tag; 
this : <apex:pageBlockSection columns="1">
instead of <apex:pageBlockSection> columns="1">
Brenda Edwards 9Brenda Edwards 9
still same issue :(  thanks for trying to help me out on this
 
claperclaper
Sure thing! here to help. I think I've got the issue pin down now, try this:
Line 5 <apex:inputField value="{!Contact.FirstName}" />
Line 6 <apex:inputField value="{!Contact.LastName}" />
Line 7 <apex:inputField value="{!Contact.Email}" />

notice how I'm using curly brackes "}" to close the merge fields instead of parenthesis ")" 
Salesforce AnswersSalesforce Answers
This video shows the solution to "Input Data Using Forms"   ====> https://www.youtube.com/watch?v=aAyM94tEh5o

-Salesforce Answers