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
Wheaton003Wheaton003 

Best way to insert standard button? New to VisualForce

Hi,

 

I'm curious if there is a better way to refer to the "New Lead" page than to use a button with the URL, like below.

 

<apex:commandButton value="New Lead" action="/00Q/e?retURL=%2F00Q%2Foo"/>

 

It would seem that there should be some way to say:

 

action="{!Lead.NewLead}"

 

or something similar?

 

Thanks

Best Answer chosen by Admin (Salesforce Developers)