You need to sign in to do that
Don't have an account?
Wheaton003
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
{!URLFOR($Action.lead.new)}
http://www.salesforce.com/us/developer/docs/pages/index_Left.htm#StartTopic=Content/pages_variables_global.htm