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
ofjsdflsdjflsdjofjsdflsdjflsdj 

Using existing standard forms with custom controllers

Hello all,

 

I am trying to create a single visualforce page that will allow users to create a new account and add one or more contacts associated with the account.

 

I'm thinking I probably need a custom controller. Can I use the existing "New Account" and "New contact" forms or do I have to re-create them field by field?

 

Thanks for you time!

 

Cheers

Shaun

sandersensandersen

It's easy to redirect from a VisualForce page to one of the standard "New" forms, but since you want to create multiple pieces of data, you'll need to write your own form and your own controller that creates the correct data.

 

Steve