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
Susy FongSusy Fong 

New button to create a new record calling out another object

1. Need A custom button (APEX/VF) to be added on your Business Contact List View
2. Button Behavior - Call out the Account object so you can create a "New Account". 
Best Answer chosen by Susy Fong
Deepali KulshresthaDeepali Kulshrestha
Hi Susy,

I went through the query of yours regarding the creation of a button to create a new record.
You can go through the following steps:
 Go to Your Name | Setup | Customize | Leads | Buttons and Links.
            Click New.

User-added image




Specify all the details(follow the screenshot).

User-added image





Enter the JS code as below.

User-added image

Save it. While saving it may prompt that you have to place the button on the layout and only then the same would be 

visible.
So to make it visible, 

User-added image


Edit the corresponding page layout.

User-added image



Save it and you are done.

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha