• Sai chand Bitra
  • NEWBIE
  • 40 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
I am a  beginner : Not able to solve Trailhead challange for-Developer Beginner :Visualforce Basics-Displaying Records, Fields, and Tables-Create a Visualforce page which displays a variety of output fields
Create a page which displays a subset of Opportunity fields using apex:outputField components. Bind the Name, Amount, Close Date and Account Name fields to the apex:outputField components.
The page must be named 'OppView'.
It must reference the Opportunity standard controller.
It must have an apex:outputField component bound to the Opportunity Name.
It must have an apex:outputField component bound to the Opportunity Amount.
It must have an apex:outputField component bound to the Opportunity Close Date.
It must have an apex:outputField component bound to the Account Name of the Opportunity.

What I had tried is craeted OppView Page with below code:
<apex:page standardController="Opportunity" tabStyle="Opportunity">
    <apex:pageBlock >
        <apex:pageBlockSection title="Opportunity Information">
           Opportunity Name <apex:outputField value="{!opportunity.name}"/>
           Opportunity Amount <apex:outputField value="{!opportunity.amount}"/>
           Opportunity Close Date. <apex:outputField value="{!opportunity.closeDate}"/>
           Opportunity Account Name   <apex:outputField value="{!opportunity.accountId}"/>
        </apex:pageBlockSection>
    </apex:pageBlock>
</apex:page>

 while checking challange got below error
Challenge Not yet complete... here's what's wrong:
The page does not include a apex:outputField component bound to the opportunity account name.

Please suggest
 
Hi, 

I have a code written in Visualforce - developer console page, but it's not displaying any preview nor allowing me to pass the challenge -  I assume that I've made some error on this..
 
The task given for this challenge as follows:

Create a Visualforce form which inserts a basic Contact record

Using the Visualforce apex:form component, create a page which will insert a Contact record based on First Name, Last Name and Email. After submitting the form, the user should be redirected to detail page of the new Contact record.The page must be named 'CreateContact'.
  • It must reference the Contact standard controller.
  • It must use a Visualforce apex:form component.
  • It must have an apex:inputField component bound to the Contact First Name.
  • It must have an apex:inputField component bound to the Contact Last Name.
  • It must have an apex:inputField component bound to the Contact Email.
  • It must have an apex:commandButton component that uses the 'save' method from the standard controller.
Please help me to resolve this problem.. Thanks in advance

User-added image