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
Srikanth Cheera 16Srikanth Cheera 16 

Vf page Open?

If i click on new Button this page should be open?
what is the process.

<apex:page standardController="Order">
    <apex:form>
    <apex:pageBlock title="OrderEdit">
        <apex:pageBlockButtons location="Top">
            <apex:commandButton value="Save" action="{!save}"/>
            <apex:commandButton value="Delete" action="{!Delete}"/>
        </apex:pageBlockButtons>
        <apex:pageBlockSection title="Order Information">
        <apex:inputField value="{!order.name}"/>
            <apex:inputField value="{!order.AccountId}"/>
            <apex:inputField value="{!order.ContractId}"/>
            <apex:inputField value="{!order.Status}"/>
        </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>
mahesh p 54mahesh p 54
Go to Order Object from Setup where you can see Buttons,Links, and Actions in the left panel click that.We can see New Button which is a standard button click edit.There you can select Salesforce Classic Override and change No override to Visualforce page where you can see the name of your page and save.

I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks and Regards,
P.sai Mahesh
Raj VakatiRaj Vakati
Click Setup | Customize, select the name of the object, and then click Buttons and Links.
In the Standard Buttons and Links related list, click Override next to the name of the button you want to change.
Select Visualforce Page as the content type.
Select a Visualforce page from the content name drop-down list. Only Visualforce pages that use the standard controller for the object on which the button 


Refer this link 

https://developer.secure.force.com/cookbook/recipe/overriding-a-standard-button