Visualforce Page:
<apex:page standardController="Payment__c" >
<apex:sectionHeader title="Payment" subtitle="New Payment" help="http://www.google.com" />
<apex:form >
<apex:pageBlock title="Payment Edit">
<apex:PageblockSection title="Information" columns="1" collapsible="true">
<apex:inputField value="{!Payment__c.Student__c}" />
<apex:inputField value="{!Payment__c.Mode_of_Payment__c}"/>
<apex:inputField value="{!Payment__c.Amount__c}"/>
<apex:inputField value="{!Payment__c.Date_of_Payment__c}"/>
</apex:PageblockSection>
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!save}"/>
<apex:commandButton value="Save & New" action="{!quicksave}"/>
<apex:commandButton value="Cancel" action="{!cancel}"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
No comments:
Post a Comment