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
sungajsungaj 

How can I redirect to Account 'New' page after overriding 'New' button to display a custom VF page?

Hi, I have overridden the 'New' button on the Account home page to display a Visualforce page where a user can enter an account name to check if it already exists.

 

On the VF page I have a 'Continue' button that should take the user to the new account page when clicked. I have tried to redirect to the new Account record via URL (e.g., '001/e..') as well as using URLFOR. However, I keep getting directed back to the VF page.

 

Any way to get around this? Thanks in advance.

souvik9086souvik9086

You can go to your standard New page from your custom vf page by appending an extra parameter at the end of the URL.

 

String url = '001/e?noverride=1';

 

If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.

Thanks