We want a custom visual force page to be used when a user clicks new on a custom object. I can seem to easily replace the edit page but how do I get salesforce to use a visual force page for the default new record button
Overriding the New button for a custom object ends up being a pretty similar process to overriding the Edit button.
There are two pieces of documentation that have relevant information.
The gist of the first link is that to override the
New button, you go to
Setup => Create => Objects => Click the name of your Custom Object
From there, click the
Buttons, Links, and Actions link at the top of the page (or just scroll down). Then, click the
Edit action link next to
New. This brings you to the page where you can override the button with a Visualforce page.
Don't forget that you can only use Visualforce pages that use the standard controller for your custom object. If your object is
MyCustomObject__c, you'd need to have the following in your Visualforce page at a minimum
<apex:page standardController="MyCustomObject__c"> <!-- Super interesting things here!!! --> </apex:page>