You need to sign in to do that
Don't have an account?
PFU
Overriding the new and edit buttons to an custom object
I have created a custom object realted to accounts table.
I have created a force.com page to use it to overirde the new and edit button forms as below.
But it is working fine for the edit, not working to the new.
I am not sure what is happening, do I need to enter the account id also in the form since related to accounts table.
I have created a force.com page to use it to overirde the new and edit button forms as below.
But it is working fine for the edit, not working to the new.
I am not sure what is happening, do I need to enter the account id also in the form since related to accounts table.
<apex:page standardcontroller="Document__c" showHeader="true">Thanks for any help in advance.
<apex:form >
<p><b>title</b><br />
<apex:inputField value="{!Document__c.Title__c}"/>
</p>
<p><b>url</b><br />
<apex:inputField value="{!Document__c.Doc_Url__c}" />
</p>
<apex:commandButton value="Save" action="{!Save}"/>
</apex:form><br />
</apex:page>