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
Shubham SengarShubham Sengar 

Visualforce page Problem

Step 1:- When u click on New Button (Account Page) its goes to A VF Page where 3 fiels like Account Name ,Account Number ,Account Phone No
              and one Save Button
Step 2:- When u click on Save Button (VF Page) ​​it will goes to another new VF page Where Account Name Auto Populated With a ("Go To Contact") Button .
Step 3:- When u click on "​Go To Contact" Button it will goes to contact detail page where  Account Name ,Account Number ,Account Phone No will populated which we gave in Step 1.

in short New  Account And Contact page Created in these 3 Step​...
Shubham SengarShubham Sengar
I'm going to Edit New Button And Select Vf Page CustomNewButton
CustomNewButton code

<apex:page standardController="Account">
    <apex:form >
         <apex:pageBlock >
                <apex:pageBlockButtons >
                       <apex:commandButton action="{!save}" value="save"/>
            <apex:pageBlockSection title="Account Information" columns="2">
  ​                  <apex:inputField value="{!}"/>
                    <apex:inputField value="{!account.Phone}"/>
                   <apex:inputField value="{!account.AccountNumber}"/>