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
Michael Lindsay 4Michael Lindsay 4 

Help with First VF page

All,

I am trying to create my first VF page and running into an error.

So far I just have the default VF page created but trying to add a field from my custom object and getting an error.  I want to add fields from the custom object called Customer Implementation.

This is what I have

<apex:page>
  <!-- Begin Default Content REMOVE THIS -->
  <h1>Congratulations</h1>
  {!CustomerImplementation__c.AccountName__c}
  This is your new Page
  <!-- End Default Content REMOVE THIS -->
</apex:page>

This is the error: Error: Unknown property 'CustomerImplementation__c.AccountName__c' referenced in CIGMilestone1

 
Best Answer chosen by Michael Lindsay 4
Chris  ByromChris Byrom
https://developer.salesforce.com/page/Building_Visualforce_Pages_Using_the_Standard_Controller

This is a good article for getting started. Look at the "Controlling Data" section specifically. You basically need to reference the objects controller, and then pass a valid ID into your page.