• Bjoern
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

I have been successful with creating VF pages that are used to override a 'Edit' buttons for a few objects within Salesforce. I would like to do  the same to override the 'New' button. I've used the same code, as a starting point. I find that the standard controller attempts to retrieve a record from the database based on the record Id found in the request, and made it available to the Visualforce page (automatically). And if the retrieval is a success, the page displays as it should. 

 

When using a standard controller and I do not have an Id for the object, as it is when a user clicks 'New', how can I present the same form/layout that one would see with the standard page? Is this possible?

 

Thanks much.

  • March 09, 2012
  • Like
  • 0