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
William Schoolfield 7William Schoolfield 7 

redirecting new button

Trying to do a redirect to account (new) page so I can provide a default.

The following either produces  a stock account page or in some instances no page is shown:

<apex:page standardController="Account" action="{!URLFOR($Action.Account.New, null, ['Name'='Default'],false)}"/>

What is wrong with this? 
William Schoolfield 7William Schoolfield 7
You have to use the internal name;

<apex:page standardController="Account" action="{!URLFOR($Action.Account.New, null, [acc2=' <auto generated> '], true)}" />
Saravanan RajarajanSaravanan Rajarajan
Hi William,

Please Try this  

<apex:page standardController="Account"  action="{!URLFOR($Action.Account.New,null,['acc2'= <auto generated>],true)}" />

Please mark it best answer if it helps you.