title: VisualForce page for new custom object
body: <p>I am a newbie in this field. First time trying to code a VisualForce page.</p>
  
  <p>I have created a custom object named 'Order'. Added one custom field named 'Account' which is referencing to an account object.
  I would like to override the default New button with my own VF page. </p>
  
  <p>This is my controller code:</p>
  
  <pre><code>public class orderExtension {
  
    private final Order__c order;
  
    public orderExtension (ApexPages.StandardController stdController) {
      order = (Order__c) stdController.getRecord();
    }
  }
  </code></pre>
  
  <p>This is my VF page code:</p>
  
  <pre><code>&lt;apex:page standardController="Order__c" extensions="orderExtension"&gt;
  &lt;apex:sectionHeader title="Order Edit" subtitle="New Order"/&gt;
  &lt;apex:form &gt;
      &lt;apex:pageBlock title="Order Edit" mode="edit"&gt;
          &lt;apex:pageBlockButtons &gt;
              &lt;apex:commandButton value="Save and Add Products" action="{!save}"/&gt;
              &lt;apex:commandButton value="Cancel" action="{!cancel}"/&gt;
          &lt;/apex:pageBlockButtons&gt;
          &lt;apex:pageBlockSection title="Order Information" columns="2"&gt;
              &lt;apex:inputField label="Account" value="????"/&gt;
          &lt;/apex:pageBlockSection&gt;
      &lt;/apex:pageBlock&gt;
  &lt;/apex:form&gt;
  &lt;/apex:page&gt;
  </code></pre>
  
  <p>Could you please assist me with the inputField? Code samples will be appreciated.</p>
  
  <p>Thanks,
  Liora</p>